/* Isolated process navigation for Health Center */
.health-head {
  align-items: center !important;
  grid-template-columns: minmax(150px, 0.5fr) minmax(420px, 1fr) auto !important;
}

.process-tabs-shell {
  min-width: 0;
  height: 44px;
  overflow: hidden;
  padding: 3px;
  border: 1px solid rgba(226, 221, 211, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.process-tab-select-wrap {
  display: none;
}

.process-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 38px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.process-tabs::-webkit-scrollbar {
  display: none;
}

.process-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 36px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(47, 120, 144, 0.055);
  color: #38515a;
  box-shadow: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
  appearance: none;
}

.process-tab:hover {
  border-color: rgba(47, 120, 144, 0.18);
  background: rgba(47, 120, 144, 0.1);
  color: #1f2933;
}

.process-tab.active {
  border-color: rgba(47, 120, 144, 0.28);
  background: #2f7890;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(47, 120, 144, 0.12);
}

.process-tab-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(47, 120, 144, 0.1);
  color: #25677c;
}

.process-tab-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.process-tab-label {
  display: inline-block;
  overflow: hidden;
  min-width: 0;
  max-width: 92px;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-tab-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(47, 120, 144, 0.12);
  color: #25677c;
  font-size: 0.74rem;
  line-height: 1;
}

.process-tab.active .process-tab-icon,
.process-tab.active .process-tab-count {
  background: rgba(255, 255, 255, 0.84);
  color: #25677c;
}

body.dark .process-tabs-shell {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(9, 15, 20, 0.62);
}

body.dark .process-tab {
  border-color: transparent;
  background: rgba(139, 210, 229, 0.055);
  color: #b8c7ce;
}

body.dark .process-tab:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(59, 142, 165, 0.14);
  color: #eaf8fb;
}

body.dark .process-tab.active {
  border-color: rgba(255, 255, 255, 0.08);
  background: #2f7890;
  color: #f3fbfd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

body.dark .process-tab-icon,
body.dark .process-tab-count {
  background: rgba(139, 210, 229, 0.12);
  color: #d7f3f8;
}

body.dark .process-tab.active .process-tab-icon,
body.dark .process-tab.active .process-tab-count {
  background: rgba(216, 245, 251, 0.88);
  color: #12313a;
}

@media (max-width: 900px) {
  .health-head {
    grid-template-columns: 1fr !important;
  }

  .process-tabs-shell,
  .health-actions {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .process-tabs-shell {
    display: none;
  }

  .process-tab-select-wrap {
    display: grid;
    gap: 6px;
    width: 100%;
  }

  .process-tab-select-wrap span {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .process-tab-select {
    width: 100%;
    min-height: 44px;
    padding: 0 42px 0 14px;
    border: 1px solid rgba(226, 221, 211, 0.9);
    border-radius: 14px;
    background: #ffffff;
    color: #1f2933;
    font-size: 0.95rem;
    font-weight: 800;
    outline: none;
    box-shadow: 0 1px 2px rgba(31, 41, 51, 0.035);
  }

  .process-tab-select:focus {
    border-color: rgba(47, 120, 144, 0.55);
    box-shadow: 0 0 0 3px rgba(47, 120, 144, 0.14);
  }

  body.dark .process-tab-select-wrap span {
    color: #9ca3af;
  }

  body.dark .process-tab-select {
    border-color: #26313a;
    background: #151a21;
    color: #e5e7eb;
  }
}
