:root {
  --emp-ink: #071719;
  --emp-muted: #536b70;
  --emp-soft: #eef8f6;
  --emp-panel: rgba(250, 253, 252, 0.9);
  --emp-line: rgba(8, 27, 31, 0.14);
  --emp-teal: #008f7a;
  --emp-teal-strong: #006f60;
  --emp-blue: #2374ab;
  --emp-amber: #b57b00;
  --emp-red: #a63d4a;
  --emp-shadow: 0 18px 42px rgba(8, 27, 31, 0.1);
}

html {
  min-height: 100%;
  background:
    linear-gradient(120deg, rgba(223, 247, 243, 0.82), rgba(236, 246, 250, 0.92) 48%, rgba(248, 251, 250, 0.98));
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(8, 27, 31, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 27, 31, 0.026) 1px, transparent 1px),
    linear-gradient(120deg, rgba(232, 250, 247, 0.82), rgba(240, 247, 250, 0.94));
  background-size: 64px 64px, 64px 64px, auto;
  color: var(--emp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open,
body.process-modal-open {
  overflow: hidden;
}

.wrap,
.infractions-shell,
.container {
  width: min(100% - 24px, 1680px);
  margin: 0 auto;
  padding: clamp(12px, 1.6vw, 24px) 0 clamp(28px, 4vw, 56px);
}

.container {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.header-home-link,
.logo-link,
.identity-divider {
  display: none !important;
}

.header-main,
.hero-card,
.onboard-hero {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid rgba(0, 143, 122, 0.24) !important;
  border-top: 3px solid var(--emp-teal) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(125deg, rgba(247, 253, 252, 0.96), rgba(230, 244, 249, 0.86)),
    linear-gradient(90deg, rgba(0, 143, 122, 0.06), transparent);
  box-shadow: var(--emp-shadow) !important;
}

.header-brand,
.profile-header-left,
.brand-row,
.hero-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-title-block,
.hero-copy,
.brand-row > div,
.hero-brand > div {
  min-width: 0;
}

.hero-kicker,
.record-kicker,
.section-kicker,
.eyebrow,
.panel-kicker,
.progress-label {
  color: var(--emp-teal);
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
}

.header-main h1,
.hero-card h1,
.profile-title-block h1,
.hero-copy h1,
.onboard-hero h2,
.icon-header,
.table-head h2,
.panel-head h2,
.record-card-head h2 {
  margin: 0;
  color: var(--emp-ink);
  font-size: clamp(1.65rem, 3.3vw, 3.9rem) !important;
  line-height: 0.96;
  letter-spacing: 0;
}

.sub-txt,
.muted,
.section-note,
.step-desc,
.process-note,
.panel-note {
  color: var(--emp-muted) !important;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.45;
}

.header-actions,
.hero-actions,
.form-actions,
.modal-action-row,
.process-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-card,
.panel,
.process-panel,
.preview-card,
.check-card,
.table-wrap,
.card,
.form-panel,
.completion-point,
.selected-employee,
.batch-week-card,
.mini-stat,
.summary-card,
.stat-card {
  border: 1px solid var(--emp-line) !important;
  border-radius: 8px !important;
  background: var(--emp-panel) !important;
  box-shadow: 0 12px 30px rgba(8, 27, 31, 0.07) !important;
}

.table-wrap,
.panel,
.form-panel,
.employee-card {
  overflow: hidden;
}

.stats-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.stat-card,
.summary-card {
  min-height: 78px;
  padding: 12px 14px !important;
  text-align: left;
  color: var(--emp-ink);
}

.stat-card:hover,
.summary-card:hover,
.stat-card.is-active,
.summary-card[aria-pressed="true"] {
  border-color: rgba(0, 143, 122, 0.46) !important;
  background: rgba(224, 251, 246, 0.84) !important;
}

.stat-val,
.summary-card strong {
  color: var(--emp-ink);
  font-size: clamp(1.55rem, 2vw, 2.2rem) !important;
  line-height: 1;
}

.stat-label,
.summary-card span {
  color: var(--emp-teal-strong);
  font-size: 0.72rem !important;
  font-weight: 950;
  text-transform: uppercase;
}

.table-head,
.panel-head,
.record-card-head,
.detail-block-head,
.process-modal-header,
.actions-modal-header,
.modal-head,
.doc-modal-header,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(12px, 1.4vw, 18px);
  border-bottom: 1px solid var(--emp-line);
  background: linear-gradient(90deg, rgba(226, 249, 245, 0.72), rgba(243, 250, 252, 0.82));
}

.toolbar,
.directory-toolbar,
.board-toolbar,
.performance-modal-toolbar,
.batch-control-grid,
.record-controls-inline,
.grid-2,
.driver-license-grid,
.assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.grid-1,
.assignment-grid-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.search-box,
.search-field,
.info-item,
.input-group,
.week-anchor-field,
.modal-note-field,
.hr-decision-area label {
  display: grid;
  gap: 6px;
  color: var(--emp-muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid rgba(8, 27, 31, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--emp-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 820;
  text-transform: none;
}

input,
select {
  padding: 0 12px;
}

textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 143, 122, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 143, 122, 0.12);
  outline: none;
}

button,
.btn-icon-label,
.ghost-btn,
.primary-btn,
.btn-primary,
.btn-secondary {
  min-height: 38px;
  border-radius: 8px !important;
  font-weight: 950 !important;
  letter-spacing: 0;
}

.primary-btn,
.btn-primary,
.btn-icon-label:not(.ghost-btn) {
  border: 1px solid rgba(8, 27, 31, 0.16) !important;
  background: linear-gradient(135deg, #071719, #006f60) !important;
  color: #fff !important;
}

.ghost-btn,
.btn-secondary,
.doc-modal-close {
  border: 1px solid rgba(8, 27, 31, 0.16) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--emp-ink) !important;
}

.danger,
.action-row.danger,
button.danger {
  border-color: rgba(166, 61, 74, 0.28) !important;
  background: rgba(255, 244, 244, 0.9) !important;
  color: #8e2635 !important;
}

.table-scroll {
  width: 100%;
  overflow: auto;
}

.tbl,
table {
  width: 100%;
  border-collapse: collapse;
}

.tbl th,
.tbl td,
table th,
table td {
  border-bottom: 1px solid rgba(8, 27, 31, 0.1);
  color: var(--emp-ink);
}

.tbl th,
table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(226, 244, 242, 0.96);
  color: #00483f;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tbl td,
table td {
  background: rgba(255, 255, 255, 0.52);
}

.tbl tr:nth-child(even) td,
table tr:nth-child(even) td {
  background: rgba(236, 248, 246, 0.46);
}

.badge,
.pill,
.meta-pill,
.status-pill,
.muted-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(0, 143, 122, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(226, 251, 247, 0.82) !important;
  color: #005f52 !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
}

.badge.status-inactive,
.badge.status-terminated,
.status-pill.is-alert {
  border-color: rgba(166, 61, 74, 0.28) !important;
  background: rgba(255, 241, 243, 0.92) !important;
  color: #8e2635 !important;
}

.badge.status-pending,
.status-pill.is-pending {
  border-color: rgba(181, 123, 0, 0.26) !important;
  background: rgba(255, 248, 226, 0.92) !important;
  color: #7a5200 !important;
}

.employee-record-layout,
.workspace-grid,
.process-board-grid,
.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.85fr);
  gap: 12px;
}

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

.record-tool-strip,
.process-stage-grid,
.completion-points,
.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.record-tool-card,
.file-box,
.action-row,
.employee-list > *,
.case-list > *,
.history-mini-list > *,
.process-queue-list > * {
  border: 1px solid rgba(8, 27, 31, 0.12) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--emp-ink) !important;
}

.record-tool-card {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.record-tool-card span {
  color: var(--emp-teal-strong);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.record-tool-card strong {
  color: var(--emp-ink);
  font-size: 1rem;
}

.actions-modal,
.doc-modal,
.process-modal,
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147482600 !important;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 28px);
  background: rgba(8, 27, 31, 0.38);
  backdrop-filter: blur(12px);
}

.actions-modal.hidden,
.doc-modal.hidden,
.modal-backdrop.hidden {
  display: none !important;
}

.process-modal:not(.is-open) {
  display: none !important;
}

.actions-modal-dialog,
.doc-modal-dialog,
.process-modal-dialog,
.modal-card {
  width: min(1040px, calc(100vw - 24px)) !important;
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid rgba(0, 143, 122, 0.26) !important;
  border-radius: 10px !important;
  background: rgba(249, 253, 252, 0.98) !important;
  box-shadow: 0 26px 80px rgba(8, 27, 31, 0.28) !important;
}

.actions-modal-dialog.wide,
.performance-modal-card {
  width: min(1320px, calc(100vw - 24px)) !important;
}

.actions-modal-header,
.modal-head,
.doc-modal-header,
.process-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

.checks-grid,
.modal-checks-grid,
.performance-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  padding: 12px;
}

.modal-progress,
.reports-container,
.actions-list,
.case-detail,
.hr-decision-area,
.document-list,
.performance-picker,
.performance-history {
  padding: 12px;
}

.brand-badge {
  border-radius: 12px !important;
  background: #071719 !important;
  box-shadow: 0 14px 30px rgba(8, 27, 31, 0.16);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.file-dummy {
  min-height: 118px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(0, 143, 122, 0.36);
  border-radius: 8px;
  background: rgba(226, 251, 247, 0.46);
  color: var(--emp-muted);
  font-weight: 900;
}

.completion-card,
.onboard-card {
  width: min(860px, 100%);
  padding: clamp(16px, 2vw, 26px);
}

.header-main.profile-card {
  min-height: 148px;
  padding: clamp(16px, 2vw, 24px) !important;
  border-top: 1px solid rgba(0, 184, 156, 0.62) !important;
  background:
    linear-gradient(135deg, rgba(244, 252, 250, 0.96), rgba(232, 246, 252, 0.9)),
    radial-gradient(circle at 86% 22%, rgba(0, 184, 156, 0.16), transparent 34%) !important;
}

.header-main.profile-card .profile-header-left {
  gap: clamp(12px, 1.6vw, 20px);
}

.header-main.profile-card .header-home-link {
  width: 58px;
  height: 58px;
  border-radius: 10px !important;
  background: #071719 !important;
  box-shadow: 0 14px 28px rgba(8, 27, 31, 0.18);
}

.header-main.profile-card .header-home-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.header-main.profile-card .avatar-wrapper {
  width: clamp(82px, 8vw, 112px);
  height: clamp(82px, 8vw, 112px);
  border-radius: 16px !important;
  border: 1px solid rgba(0, 143, 122, 0.38);
  background:
    linear-gradient(145deg, rgba(209, 250, 244, 0.95), rgba(236, 248, 255, 0.95)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74), 0 18px 36px rgba(8, 27, 31, 0.14);
  color: var(--emp-ink);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.header-main.profile-card .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-main.profile-card .avatar-wrapper.has-photo {
  background:
    var(--avatar-photo) center / cover no-repeat,
    linear-gradient(145deg, rgba(209, 250, 244, 0.95), rgba(236, 248, 255, 0.95)) !important;
  color: transparent !important;
}

.header-main.profile-card .avatar-wrapper.has-photo .avatar-img {
  display: block;
}

.header-main.profile-card .identity-divider {
  height: 76px;
  background: rgba(8, 27, 31, 0.12);
}

.profile-title-block h1 {
  max-width: min(980px, 72vw);
  font-size: clamp(2.4rem, 5.2vw, 5.1rem) !important;
  line-height: 0.92;
}

.profile-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.employee-record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 14px;
}

.actions-modal-dialog {
  width: min(620px, calc(100vw - 24px)) !important;
  border-top: 3px solid var(--emp-teal) !important;
}

.actions-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.action-row {
  width: 100%;
  min-height: 72px;
  justify-content: flex-start !important;
  padding: 13px 14px !important;
  text-align: left;
  border: 1px solid rgba(8, 27, 31, 0.14) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

.action-row:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 143, 122, 0.42) !important;
  background: rgba(232, 251, 248, 0.86) !important;
}

.action-row span {
  display: grid;
  gap: 4px;
}

.action-row strong {
  color: var(--emp-ink);
  font-size: 0.98rem;
}

.action-row small {
  color: var(--emp-muted);
  font-size: 0.8rem;
  font-weight: 820;
  line-height: 1.35;
}

.action-row.access-action {
  border-color: rgba(0, 143, 122, 0.34) !important;
  background: linear-gradient(135deg, rgba(222, 251, 246, 0.95), rgba(245, 251, 252, 0.92)) !important;
}

.action-row.access-action strong {
  color: #006f60;
}

@media (max-width: 1100px) {
  .employee-record-layout,
  .workspace-grid,
  .process-board-grid,
  .board-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wrap,
  .infractions-shell,
  .container {
    width: min(100% - 14px, 1680px);
    padding-top: 8px;
  }

  .header-main,
  .hero-card,
  .onboard-hero,
  .table-head,
  .panel-head,
  .record-card-head,
  .actions-modal-header,
  .modal-head,
  .doc-modal-header,
  .process-modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-main h1,
  .hero-card h1,
  .profile-title-block h1,
  .hero-copy h1,
  .onboard-hero h2 {
    font-size: clamp(1.6rem, 10vw, 2.6rem) !important;
  }

  .stats-grid,
  .summary-grid,
  .toolbar,
  .directory-toolbar,
  .board-toolbar,
  .record-controls-inline,
  .grid-2,
  .driver-license-grid,
  .assignment-grid {
    grid-template-columns: 1fr;
  }

  .header-actions,
  .hero-actions,
  .form-actions,
  .modal-action-row,
  .process-modal-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions > *,
  .hero-actions > *,
  .form-actions > *,
  .modal-action-row > *,
  .process-modal-actions > * {
    flex: 1 1 auto;
  }

  .actions-modal,
  .doc-modal,
  .process-modal,
  .modal-backdrop {
    padding: 8px;
  }

  .actions-modal-dialog,
  .doc-modal-dialog,
  .process-modal-dialog,
  .modal-card {
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px);
  }
}

/* Profile 2027 refresh */
body:has(.employee-record-layout) {
  background:
    linear-gradient(135deg, rgba(236, 250, 247, 0.96), rgba(250, 252, 252, 0.98) 48%, rgba(233, 244, 250, 0.96)),
    repeating-linear-gradient(90deg, rgba(8, 27, 31, 0.025) 0 1px, transparent 1px 68px);
}

body:has(.employee-record-layout) .wrap {
  width: min(100% - 28px, 1680px);
  padding-top: 18px;
}

.header-main.profile-card {
  min-height: 128px !important;
  padding: clamp(14px, 1.7vw, 22px) !important;
  border: 1px solid rgba(7, 23, 25, 0.12) !important;
  border-top: 3px solid rgba(0, 184, 156, 0.92) !important;
  border-radius: 10px !important;
  background:
    linear-gradient(130deg, rgba(250, 254, 253, 0.98), rgba(230, 246, 251, 0.9)),
    radial-gradient(circle at 96% 8%, rgba(36, 120, 199, 0.12), transparent 36%) !important;
  box-shadow: 0 24px 60px rgba(8, 27, 31, 0.08);
}

.header-main.profile-card .header-home-link,
.header-main.profile-card .identity-divider {
  display: none !important;
}

.header-main.profile-card .profile-header-left {
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
}

.header-main.profile-card .avatar-wrapper {
  width: clamp(88px, 7vw, 116px) !important;
  height: clamp(88px, 7vw, 116px) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0, 143, 122, 0.38);
  background:
    linear-gradient(145deg, rgba(209, 250, 244, 0.95), rgba(236, 248, 255, 0.95)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.86), 0 18px 42px rgba(8, 27, 31, 0.14);
}

.header-main.profile-card .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title-block h1 {
  max-width: min(980px, 72vw);
  font-size: clamp(2.2rem, 4.7vw, 4.65rem) !important;
  line-height: 0.94;
}

.profile-meta-line {
  margin-top: 9px;
}

.profile-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-contact-strip span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(7, 23, 25, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
}

.profile-contact-strip strong {
  color: #007d70;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.profile-contact-strip em {
  max-width: min(34vw, 340px);
  overflow: hidden;
  color: #06191d;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-main.profile-card .header-actions {
  align-self: center;
}

.employee-record-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.45fr);
  gap: 14px;
  margin-top: 14px;
}

.employee-record-layout > .profile-card,
.employee-card {
  border: 1px solid rgba(7, 23, 25, 0.12) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: 0 20px 52px rgba(8, 27, 31, 0.07);
  overflow: hidden;
}

.employee-record-layout > .profile-card:not(.employee-card) {
  min-height: 420px;
}

.employee-record-layout > .activity-card {
  min-height: 0 !important;
}

.employee-record-layout > .profile-card:not(.employee-card) h3 {
  padding: 18px 18px 10px;
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(7, 23, 25, 0.12);
  background: linear-gradient(90deg, rgba(225, 251, 247, 0.72), rgba(240, 249, 252, 0.62));
}

.record-card-head {
  margin: 0 !important;
  padding: 18px !important;
  border-bottom: 1px solid rgba(7, 23, 25, 0.12) !important;
  background:
    linear-gradient(120deg, rgba(225, 251, 247, 0.74), rgba(244, 250, 252, 0.82)),
    radial-gradient(circle at 86% 20%, rgba(0, 184, 156, 0.09), transparent 32%);
}

.record-card-head h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem) !important;
  line-height: 0.96;
}

#personalInfoForm {
  padding: 14px 18px 18px;
}

.record-controls-inline,
.grid-2,
.driver-license-grid {
  gap: 10px !important;
}

.info-item label,
.info-item > span {
  color: #3f5960 !important;
  letter-spacing: 0 !important;
}

.info-item input,
.info-item select,
.info-item textarea {
  min-height: 44px;
  border-radius: 7px !important;
  border: 1px solid rgba(7, 23, 25, 0.16) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

.info-item input:focus,
.info-item select:focus,
.info-item textarea:focus {
  outline: 2px solid rgba(0, 184, 156, 0.28);
  border-color: rgba(0, 143, 122, 0.52) !important;
}

.record-tool-strip {
  margin-top: 14px;
  border-top: 1px solid rgba(7, 23, 25, 0.12);
  background: linear-gradient(90deg, rgba(249, 252, 252, 0.88), rgba(233, 248, 246, 0.72));
}

.record-tool-card {
  min-height: 64px;
  border-color: rgba(7, 23, 25, 0.13) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.record-tool-card:hover {
  background: rgba(229, 250, 246, 0.9) !important;
  border-color: rgba(0, 143, 122, 0.42) !important;
}

.timeline {
  padding: 14px 18px 18px !important;
}

.actions-modal-dialog.wide {
  width: min(1180px, calc(100vw - 28px)) !important;
}

.actions-modal-dialog.wide .actions-modal-header {
  padding: 22px 24px !important;
  border-bottom: 1px solid rgba(7, 23, 25, 0.12) !important;
  background:
    linear-gradient(120deg, rgba(225, 251, 247, 0.86), rgba(242, 249, 252, 0.92)),
    radial-gradient(circle at 92% 20%, rgba(0, 184, 156, 0.12), transparent 36%);
}

.actions-modal-dialog.wide .actions-modal-header h3 {
  font-size: clamp(1.8rem, 3vw, 3rem) !important;
}

.actions-modal-dialog.wide .actions-modal-header p {
  max-width: 780px;
  margin-top: 8px;
}

.modal-progress {
  padding: 14px 24px 10px !important;
}

.modal-checks-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 14px 24px 24px !important;
}

.modal-checks-grid .check-card {
  border: 1px solid rgba(7, 23, 25, 0.13) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  overflow: hidden;
}

.modal-checks-grid .check-card h4 {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(7, 23, 25, 0.1);
  background: rgba(226, 249, 245, 0.68);
  font-size: 1.02rem;
}

.check-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(210px, 0.9fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(7, 23, 25, 0.08);
}

.check-row:last-child {
  border-bottom: 0;
}

.check-meta {
  min-width: 0;
}

.check-label {
  color: #06191d;
  font-size: 1rem;
  font-weight: 950;
}

.check-state {
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(7, 23, 25, 0.1);
  border-radius: 999px;
  background: rgba(246, 250, 250, 0.9);
  color: #3f5960;
  font-size: 0.72rem;
  font-weight: 950;
}

.check-state.is-pass,
.check-state.is-yes {
  border-color: rgba(0, 143, 122, 0.28);
  background: rgba(215, 250, 242, 0.82);
  color: #007363;
}

.check-state.is-fail,
.check-state.is-no {
  border-color: rgba(184, 70, 77, 0.28);
  background: rgba(255, 236, 235, 0.9);
  color: #9f3039;
}

.check-state.is-pending {
  border-color: rgba(216, 149, 0, 0.28);
  background: rgba(255, 248, 224, 0.92);
  color: #8a6100;
}

.check-row .inline {
  display: grid;
  grid-template-columns: minmax(110px, 0.85fr) minmax(130px, 1fr);
  gap: 8px;
}

.check-row .inline:has(.check-select:only-child),
.check-row .inline:not(:has(.check-date)) {
  grid-template-columns: minmax(140px, 1fr);
}

.check-select,
.check-date {
  min-height: 42px !important;
  border-radius: 8px !important;
}

.action-row.is-disabled,
.action-row:disabled {
  cursor: not-allowed !important;
  opacity: 0.68 !important;
  transform: none !important;
}

.action-row.is-disabled strong,
.action-row:disabled strong {
  color: #3f5960 !important;
}

.action-row.is-disabled small,
.action-row:disabled small {
  color: #6b7f85 !important;
}

@media (max-width: 980px) {
  .employee-record-layout {
    grid-template-columns: 1fr;
  }

  .profile-title-block h1 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  body:has(.employee-record-layout) .wrap {
    width: min(100% - 12px, 1680px);
    padding-top: 8px;
  }

  .header-main.profile-card {
    grid-template-columns: 1fr;
    min-height: 0 !important;
  }

  .header-main.profile-card .avatar-wrapper {
    width: 78px !important;
    height: 78px !important;
  }

  .header-main.profile-card .header-actions {
    width: 100%;
  }

  .profile-contact-strip span {
    width: 100%;
  }

  .profile-contact-strip em {
    max-width: 100%;
  }

  .modal-checks-grid {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
  }

  .check-row {
    grid-template-columns: 1fr;
  }
}

/* Profile card polish */
body:has(.employee-record-layout) .wrap {
  width: min(100% - 32px, 1560px);
  padding-top: 18px;
}

.header-main.profile-card {
  min-height: 190px !important;
  padding: clamp(20px, 2.4vw, 34px) !important;
  border: 1px solid rgba(7, 23, 25, 0.12) !important;
  border-top: 4px solid rgba(0, 184, 156, 0.94) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.96) 0%, rgba(237, 250, 249, 0.94) 46%, rgba(225, 242, 251, 0.92) 100%),
    radial-gradient(circle at 92% 18%, rgba(0, 184, 156, 0.18), transparent 32%) !important;
  box-shadow: 0 26px 70px rgba(8, 27, 31, 0.1);
}

.header-main.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 184, 156, 0.08), transparent 34%),
    repeating-linear-gradient(90deg, rgba(7, 23, 25, 0.026) 0 1px, transparent 1px 76px);
}

.header-main.profile-card > * {
  position: relative;
  z-index: 1;
}

.header-main.profile-card .profile-header-left {
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
}

.header-main.profile-card .avatar-wrapper {
  width: clamp(120px, 9vw, 150px) !important;
  height: clamp(120px, 9vw, 150px) !important;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px !important;
  background:
    linear-gradient(145deg, rgba(209, 250, 244, 0.95), rgba(236, 248, 255, 0.95)) !important;
  box-shadow:
    0 20px 42px rgba(8, 27, 31, 0.18),
    0 0 0 1px rgba(0, 143, 122, 0.28);
  font-size: clamp(2.6rem, 4vw, 4.2rem);
}

.header-main.profile-card .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title-block {
  display: grid;
  align-content: center;
}

.profile-title-block h1 {
  max-width: min(760px, 58vw);
  margin-top: 6px;
  font-size: clamp(2.6rem, 4.3vw, 4.9rem) !important;
  line-height: 0.9;
}

.profile-meta-line {
  margin-top: 12px;
}

.profile-meta-line .sub-txt {
  color: #31555d;
  font-size: 1.05rem;
  font-weight: 950;
}

.profile-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.profile-contact-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(7, 23, 25, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.profile-contact-strip strong {
  color: #007d70;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-contact-strip em {
  max-width: min(34vw, 360px);
  overflow: hidden;
  color: #06191d;
  font-style: normal;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-main.profile-card .header-actions {
  align-self: center;
}

.header-main.profile-card #profileActionsBtn {
  min-height: 46px;
  padding: 0 20px !important;
  border-radius: 12px !important;
}

.employee-record-layout {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.32fr);
  gap: 16px;
  margin-top: 16px;
}

.employee-card {
  overflow: hidden;
}

.record-card-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  padding: 18px 20px !important;
  background:
    linear-gradient(115deg, rgba(225, 251, 247, 0.74), rgba(246, 251, 252, 0.92)) !important;
}

.record-card-head h2 {
  margin-top: 4px;
  font-size: clamp(2rem, 3vw, 3.2rem) !important;
}

#personalInfoForm {
  padding: 18px 20px 20px;
}

.record-controls-inline,
.grid-2,
.grid-1,
.driver-license-grid {
  gap: 12px !important;
}

.record-controls-inline {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(210px, 1fr)) !important;
}

.info-item {
  gap: 7px !important;
}

.info-item label,
.info-item > span {
  color: #466068 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em !important;
}

.info-item input,
.info-item select,
.info-item textarea {
  min-height: 48px;
  padding-inline: 12px;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.record-tool-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(7, 23, 25, 0.1);
  background: transparent !important;
}

.record-tool-card {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 13px 14px !important;
  border: 1px solid rgba(0, 143, 122, 0.18) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(235, 250, 248, 0.7)) !important;
}

.record-tool-card span {
  color: #007d70 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
}

.record-tool-card strong {
  color: #06191d;
  font-size: 1.02rem;
}

.activity-card {
  display: grid;
  align-content: start;
  min-height: 0 !important;
}

.employee-record-layout > .activity-card h3 {
  padding: 20px 20px 14px !important;
  font-size: 1.55rem;
}

.timeline {
  padding: 16px 20px 20px !important;
}

@media (max-width: 980px) {
  .employee-record-layout {
    grid-template-columns: 1fr;
  }

  .record-controls-inline,
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body:has(.employee-record-layout) .wrap {
    width: min(100% - 12px, 1560px);
    padding-top: 8px;
  }

  .header-main.profile-card {
    grid-template-columns: 1fr;
    min-height: 0 !important;
    padding: 16px !important;
  }

  .header-main.profile-card .profile-header-left {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-main.profile-card .avatar-wrapper {
    width: 104px !important;
    height: 104px !important;
    border-radius: 22px !important;
  }

  .profile-title-block h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 13vw, 3.6rem) !important;
  }

  .profile-contact-strip span {
    width: 100%;
  }

  .profile-contact-strip em {
    max-width: 100%;
  }

  .header-main.profile-card .header-actions {
    width: 100%;
  }

  .header-main.profile-card #profileActionsBtn {
    width: 100%;
  }

  .record-controls-inline,
  .grid-2,
  .record-tool-strip {
    grid-template-columns: 1fr !important;
  }

  .record-card-head {
    grid-template-columns: 1fr;
  }
}
