.offboarding-dashboard-page {
  color: #17213f;
}

.offboarding-dashboard-page .admin-page-head {
  margin-bottom: 18px;
}

.offboarding-stage-panel,
.offboarding-list-card {
  background: #fff;
  border: 1px solid #e7ecf8;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 33, 63, 0.05);
}

.offboarding-stage-panel {
  margin-bottom: 18px;
  padding: 22px 24px 20px;
}

.offboarding-stage-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.offboarding-stage-head h2 {
  color: #17213f;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
}

.offboarding-stage-head p {
  color: #7f89a4;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.offboarding-stage-track {
  align-items: flex-start;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 2px 6px;
  scrollbar-width: thin;
}

.offboarding-stage-node {
  flex: 0 0 140px;
  min-width: 140px;
  position: relative;
}

.offboarding-stage-node:not(:last-child)::after {
  border-top: 2px solid #cfdaef;
  content: "";
  left: 82px;
  position: absolute;
  right: -58px;
  top: 24px;
  z-index: 0;
}

.offboarding-stage-node:not(:last-child)::before {
  border-right: 2px solid #cfdaef;
  border-top: 2px solid #cfdaef;
  content: "";
  height: 7px;
  position: absolute;
  right: -60px;
  top: 20px;
  transform: rotate(45deg);
  width: 7px;
  z-index: 0;
}

.offboarding-stage-node.is-flow-end::after,
.offboarding-stage-node.is-flow-end::before,
.offboarding-stage-node.is-terminal::after,
.offboarding-stage-node.is-terminal::before {
  display: none;
}

.offboarding-stage-node.is-terminal {
  margin-left: 18px;
}

.offboarding-stage-node-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #17213f;
  cursor: pointer;
  display: grid;
  grid-template-rows: 48px minmax(38px, auto) 28px;
  justify-items: center;
  min-height: 122px;
  padding: 0 8px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.offboarding-stage-node-button:hover .offboarding-stage-index,
.offboarding-stage-node-button.is-active .offboarding-stage-index {
  background: var(--stage-color);
  color: #fff;
  transform: translateY(-1px);
}

.offboarding-stage-node-button.is-active .offboarding-stage-label {
  color: var(--stage-color);
}

.offboarding-stage-index {
  align-items: center;
  background: #fff;
  border: 2px solid var(--stage-color);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(23, 33, 63, 0.08);
  color: var(--stage-color);
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  margin-top: 2px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
  width: 36px;
}

.offboarding-stage-label {
  color: var(--stage-color);
  display: -webkit-box;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.22;
  max-width: 132px;
  min-height: 32px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.offboarding-stage-count {
  color: #202a4d;
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  margin-top: 4px;
}

.offboarding-theme-blue {
  --stage-color: #4f6df5;
  --stage-soft: #edf1ff;
}

.offboarding-theme-orange {
  --stage-color: #df8f25;
  --stage-soft: #fff4e5;
}

.offboarding-theme-green {
  --stage-color: #24a765;
  --stage-soft: #e9f8ef;
}

.offboarding-theme-purple {
  --stage-color: #7559dc;
  --stage-soft: #f0ecff;
}

.offboarding-theme-amber {
  --stage-color: #d99a1f;
  --stage-soft: #fff6da;
}

.offboarding-theme-teal {
  --stage-color: #4da8b7;
  --stage-soft: #e9f8fa;
}

.offboarding-theme-sky {
  --stage-color: #4b89e8;
  --stage-soft: #edf5ff;
}

.offboarding-theme-red {
  --stage-color: #cf4058;
  --stage-soft: #ffedf1;
}

.offboarding-theme-terminated {
  --stage-color: #48556f;
  --stage-soft: #eef2f8;
}

.offboarding-filter-panel {
  background: #fff;
  border: 1px solid #e6ecf7;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(31, 42, 68, 0.04);
  margin-bottom: 18px;
  padding: 18px 20px;
}

.offboarding-filter-panel.is-collapsed [data-filter-extra] {
  display: none;
}

.offboarding-filter-grid {
  align-items: end;
  display: grid !important;
  gap: 14px 18px !important;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  width: 100%;
}

.offboarding-filter-field {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.offboarding-filter-field > span {
  color: #303a58;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.offboarding-filter-field .form-control,
.offboarding-filter-field .form-select,
.offboarding-filter-field .md-multi-select__control {
  border-color: #dce3f1;
  border-radius: 4px;
  min-height: 38px;
}

.offboarding-filter-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  min-height: 38px;
  white-space: nowrap;
}

.offboarding-filter-toggle {
  background: #fff;
  border-color: #dce3f1;
  color: #626c83;
  min-width: 128px;
}

.offboarding-filter-reset {
  align-items: center;
  background: transparent;
  border: 0;
  color: #5f687f;
  display: inline-flex;
  font-weight: 700;
  gap: 6px;
  padding: 0;
}

.offboarding-filter-reset::before {
  content: "\21BB";
  font-size: 15px;
  line-height: 1;
}

.offboarding-filter-reset:hover,
.offboarding-filter-reset:focus {
  color: #4f46e5;
  text-decoration: none;
}

.offboarding-dashboard-table {
  min-width: 1780px;
}

.offboarding-dashboard-table thead th {
  background: #f7f9fd;
  color: #5d6780;
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 14px;
  padding-top: 14px;
}

.offboarding-dashboard-table tbody td {
  padding-bottom: 16px;
  padding-top: 16px;
  vertical-align: middle;
}

.offboarding-reason-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offboarding-employee-cell {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 210px;
}

.offboarding-avatar {
  align-items: center;
  background: #edf1ff;
  border: 1px solid #d9e1ff;
  border-radius: 50%;
  color: #4f6df5;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 13px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.offboarding-employee-name {
  color: #17213f;
  font-weight: 800;
  line-height: 1.2;
}

.offboarding-employee-no {
  color: #7f89a4;
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.offboarding-row-stage {
  min-width: 210px;
}

.offboarding-stage-pill {
  align-items: center;
  color: var(--stage-color);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  line-height: 1.2;
  max-width: 220px;
}

.offboarding-stage-pill-index {
  align-items: center;
  background: var(--stage-color);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 22px;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.offboarding-mini-progress {
  align-items: center;
  display: flex;
  gap: 0;
  margin-top: 9px;
  width: 160px;
}

.offboarding-mini-dot {
  align-items: center;
  display: inline-flex;
  flex: 1 1 0;
  justify-content: center;
  position: relative;
}

.offboarding-mini-dot::before {
  background: #dfe6f6;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 6px;
}

.offboarding-mini-dot:first-child::before {
  left: 50%;
}

.offboarding-mini-dot:last-child::before {
  right: 50%;
}

.offboarding-mini-dot::after {
  background: #fff;
  border: 2px solid #cfd8ef;
  border-radius: 50%;
  content: "";
  height: 10px;
  position: relative;
  width: 10px;
  z-index: 1;
}

.offboarding-mini-dot.is-filled::before {
  background: var(--stage-color);
}

.offboarding-mini-dot.is-filled::after {
  background: var(--stage-color);
  border-color: var(--stage-color);
}

.offboarding-action-group {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
}

.offboarding-action-group .btn {
  border-radius: 4px;
  font-weight: 700;
}

.offboarding-detail-layout {
  display: grid;
  gap: 18px;
}

.offboarding-detail-section {
  background: #fff;
  border: 1px solid #e7ecf8;
  border-radius: 8px;
  padding: 18px;
}

.offboarding-detail-section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.offboarding-detail-section-head h3 {
  color: #1f2942;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.offboarding-detail-tabs {
  position: relative;
}

.offboarding-detail-tabs > input[type="radio"] {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.offboarding-detail-tab-list {
  border-bottom: 1px solid #e4eaf6;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.offboarding-detail-tab-list label {
  border-bottom: 2px solid transparent;
  color: #68738c;
  cursor: pointer;
  font-weight: 800;
  margin: 0;
  padding: 0 14px 12px;
  transition: color .16s ease, border-color .16s ease;
}

#offboarding-detail-tab-timeline:checked ~ .offboarding-detail-tab-list label[for="offboarding-detail-tab-timeline"],
#offboarding-detail-tab-application:checked ~ .offboarding-detail-tab-list label[for="offboarding-detail-tab-application"] {
  border-bottom-color: #5b5cf6;
  color: #3038d6;
}

.offboarding-detail-tab-panel {
  display: none;
}

.offboarding-detail-empty {
  color: #95a0b5;
  font-size: 14px;
  padding: 18px 0;
}

#offboarding-detail-tab-timeline:checked ~ .offboarding-detail-tab-panels [data-panel="timeline"],
#offboarding-detail-tab-application:checked ~ .offboarding-detail-tab-panels [data-panel="application"] {
  display: block;
}

.offboarding-detail-attachments {
  display: grid;
  gap: 4px;
}

.offboarding-detail-attachments a {
  color: #4f46e5;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.offboarding-detail-timeline {
  display: grid;
  gap: 0;
}

.offboarding-detail-step {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px 1fr;
  min-height: 76px;
  padding-bottom: 16px;
  position: relative;
}

.offboarding-detail-step::before {
  background: #dbe2ee;
  bottom: 2px;
  content: "";
  left: 13px;
  position: absolute;
  top: 32px;
  width: 2px;
}

.offboarding-detail-step:last-child {
  min-height: auto;
  padding-bottom: 0;
}

.offboarding-detail-step:last-child::before {
  display: none;
}

.offboarding-detail-step-index {
  align-items: center;
  background: #f1f4f9;
  border-radius: 999px;
  color: #a1acc0;
  display: flex;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  position: relative;
  width: 28px;
  z-index: 1;
}

.offboarding-detail-step.is-current .offboarding-detail-step-index {
  background: #fff4e5;
  color: #dd8416;
}

.offboarding-detail-step.is-completed .offboarding-detail-step-index {
  background: #e9f8ef;
  color: #23a461;
}

.offboarding-detail-step.is-completed::before {
  background: #a7ddbd;
}

.offboarding-detail-step.is-rejected .offboarding-detail-step-index {
  background: #ffecef;
  color: #cf3147;
}

.offboarding-detail-step.is-rejected::before {
  background: #f3b0bc;
}

.offboarding-detail-step.is-terminated .offboarding-detail-step-index {
  background: #eef2f8;
  color: #48556f;
}

.offboarding-detail-step.is-terminated::before {
  background: #b8c2d4;
}

.offboarding-detail-step-title {
  font-weight: 800;
}

.offboarding-detail-step.is-pending .offboarding-detail-step-title {
  color: #9aa5b8;
}

.offboarding-detail-step-meta {
  color: #7b86a1;
  font-size: 12px;
  margin-top: 2px;
}

.offboarding-detail-step.is-pending .offboarding-detail-step-meta {
  color: #b1bac9;
}

.offboarding-approval-nodes {
  border-top: 1px solid #edf1f8;
  margin-top: 22px;
  padding-top: 18px;
}

.offboarding-approval-nodes-title {
  color: #1f2942;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.offboarding-approval-process {
  display: grid;
  gap: 0;
  padding: 4px 0 2px;
}

.offboarding-approval-process-item {
  display: grid;
  gap: 16px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 82px;
  padding-bottom: 24px;
  position: relative;
}

.offboarding-approval-process-item::before {
  background: #dbe2ee;
  bottom: -2px;
  content: "";
  left: 22px;
  position: absolute;
  top: 46px;
  width: 2px;
}

.offboarding-approval-process-item:last-child {
  min-height: auto;
  padding-bottom: 0;
}

.offboarding-approval-process-item:last-child::before {
  display: none;
}

.offboarding-approval-avatar {
  align-items: center;
  background: #f5f7fb;
  border: 1px solid #dbe3f2;
  border-radius: 999px;
  color: #4e5a70;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  position: relative;
  width: 46px;
  z-index: 1;
}

.offboarding-approval-process-item.is-done .offboarding-approval-avatar {
  background: #e9f8ef;
  border-color: #69c887;
  color: #23985d;
}

.offboarding-approval-process-item.is-done::before {
  background: #a7ddbd;
}

.offboarding-approval-process-item.is-pending .offboarding-approval-avatar {
  background: #f4f6fb;
  border-color: #dce3ef;
  color: #a1acc0;
}

.offboarding-approval-process-item.is-skipped .offboarding-approval-avatar {
  background: #f3f5f9;
  border-color: #cfd7e6;
  color: #68738c;
}

.offboarding-approval-process-item.is-rejected .offboarding-approval-avatar {
  background: #ffecef;
  border-color: #f0a9b5;
  color: #cf3147;
}

.offboarding-approval-process-item.is-rejected::before {
  background: #f3b0bc;
}

.offboarding-approval-process-item.is-terminated .offboarding-approval-avatar {
  background: #eef2f8;
  border-color: #9da9bd;
  color: #48556f;
}

.offboarding-approval-process-item.is-terminated::before {
  background: #b8c2d4;
}

.offboarding-approval-process-body {
  min-width: 0;
  padding-top: 2px;
}

.offboarding-approval-node-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 22px;
}

.offboarding-approval-node-name {
  color: #4e5a70;
  font-size: 15px;
  font-weight: 800;
}

.offboarding-approval-process-item.is-done .offboarding-approval-node-name {
  color: #36a66b;
}

.offboarding-approval-process-item.is-pending .offboarding-approval-node-name {
  color: #9aa5b8;
}

.offboarding-approval-process-item.is-rejected .offboarding-approval-node-name {
  color: #cf3147;
}

.offboarding-approval-process-item.is-terminated .offboarding-approval-node-name {
  color: #48556f;
}

.offboarding-approval-action {
  background: #eef2ff;
  border-radius: 999px;
  color: #5865e8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 9px;
}

.offboarding-approval-action.is-done {
  background: #e9f8ef;
  color: #23985d;
}

.offboarding-approval-action.is-skipped {
  background: #eef1f6;
  color: #68738c;
}

.offboarding-approval-action.is-pending {
  background: #fff4e5;
  color: #d6841b;
}

.offboarding-approval-action.is-rejected {
  background: #ffecef;
  color: #cf3147;
}

.offboarding-approval-action.is-terminated {
  background: #eef2f8;
  color: #48556f;
}

.offboarding-approval-time {
  color: #a1a9b8;
  font-size: 13px;
}

.offboarding-approval-actor {
  color: #1f2942;
  font-size: 14px;
  margin-top: 6px;
}

.offboarding-approval-comment {
  color: #68738c;
  font-size: 13px;
  margin-top: 6px;
}

.offboarding-approval-empty {
  color: #95a0b5;
  padding: 10px 0;
}

@media (max-width: 1440px) {
  .offboarding-filter-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }

  .offboarding-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .offboarding-stage-panel,
  .offboarding-list-card .card-body {
    padding: 16px;
  }

  .offboarding-filter-grid {
    grid-template-columns: 1fr;
  }

  .offboarding-filter-actions {
    justify-content: stretch;
  }

  .offboarding-filter-actions .btn {
    flex: 1 1 0;
  }

  .offboarding-filter-reset {
    justify-content: center;
  }
}
