.sidebar .nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.nav-sop-group {
  display: grid;
  gap: 3px;
  margin: 2px 0 4px;
}

.nav-sop-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 0 12px;
  color: #9db6bf;
  font-size: 13px;
  font-weight: 700;
}

.nav-sop-title svg {
  width: 19px;
  height: 19px;
}

.nav-sop-title b {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 10px;
  background: #355966;
  color: #dcebf0;
  font-size: 10px;
}

.nav-sop-group.current .nav-sop-title {
  color: #fff;
}

.nav-sop-item {
  width: calc(100% - 18px);
  min-height: 38px !important;
  height: 38px !important;
  margin-left: 18px;
  padding-left: 14px !important;
  font-size: 12px !important;
  text-decoration: none;
}

.nav-sop-item svg {
  width: 16px !important;
  height: 16px !important;
}

.nav-sop-item.active {
  background: #2b5866;
}

.sop-phase-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #cfe0e7;
  border-left: 4px solid #247aa8;
  border-radius: 7px;
  background: #f4f9fb;
}

.sop-phase-context > div:first-child {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.sop-phase-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 6px;
  background: #dfeff5;
  color: #247aa8;
}

.sop-phase-icon svg {
  width: 19px;
}

.sop-phase-context strong,
.sop-phase-context small,
.sop-phase-context > div:first-child > div > span {
  display: block;
}

.sop-phase-context > div:first-child > div > span {
  font-size: 10px;
  color: #71818b;
}

.sop-phase-context strong {
  margin: 2px 0;
  font-size: 16px;
}

.sop-phase-context small {
  font-size: 11px;
  color: #66767f;
}

.sop-phase-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.sop-phase-stats span {
  padding: 7px 9px;
  border: 1px solid #d5e1e6;
  border-radius: 5px;
  background: #fff;
  color: #5d6c75;
  font-size: 10px;
}

.sop-phase-stats b {
  color: #17232b;
  font-size: 12px;
}

.sop-reference-grid {
  grid-template-columns: 1fr;
}

.sop-step-number {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  margin-top: -3px;
  border-radius: 5px;
  background: #eef3f5;
  color: #57707c;
  font-size: 10px;
  font-weight: 800;
}

.sop-item-type {
  font-size: 9px !important;
  font-weight: 700;
  color: #247aa8 !important;
}

.sop-item.blocked .sop-item-type {
  color: #c43830 !important;
}

.sop-auto-current {
  display: grid;
  gap: 3px;
}

.sop-auto-current span {
  font-size: 10px;
  color: #7a8991;
}

.sop-auto-current strong {
  font-size: 14px;
  color: #17232b;
}

@media (max-width: 720px) {
  .sop-phase-context {
    align-items: flex-start;
    flex-direction: column;
  }

  .sop-phase-stats {
    justify-content: flex-start;
  }

  .sop-auto-toolbar {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .sop-auto-toolbar label,
  .sop-auto-toolbar select {
    width: 100%;
  }
}
