.sales-release-control {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #cfe0f1;
  border-radius: 20px;
  background: linear-gradient(145deg, #f8fbff 0%, #ffffff 58%, #f2fbf8 100%);
  box-shadow: 0 14px 36px rgba(29, 76, 122, 0.08);
}

.sales-release-control.is-ready {
  border-color: #91d8c4;
  background: linear-gradient(145deg, #f3fcf8 0%, #ffffff 65%);
}

.sales-release-control-head,
.sales-release-control-title,
.sales-release-next,
.sales-release-check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sales-release-control-title {
  justify-content: flex-start;
}

.sales-release-control-index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #fff;
  background: #1168b7;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sales-release-control h3,
.sales-release-control p {
  margin: 0;
}

.sales-release-control h3 {
  color: #173854;
  font-size: 22px;
}

.sales-release-control-title p {
  margin-top: 4px;
  color: #657b91;
}

.sales-release-stage {
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #9b5e13;
  background: #fff4dd;
  text-align: center;
  font-weight: 800;
}

.sales-release-control.is-ready .sales-release-stage {
  color: #08775f;
  background: #dff7ef;
}

.sales-release-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  margin-top: 18px;
}

.sales-release-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeaf4;
}

.sales-release-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1c75cf, #28a985);
  transition: width 0.25s ease;
}

.sales-release-progress > b {
  color: #16436a;
  white-space: nowrap;
}

.sales-release-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.sales-release-category-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dae6f1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.sales-release-category-grid article.passed {
  border-color: #a8dfcf;
  background: #f1fbf7;
}

.sales-release-category-grid article.blocked {
  border-color: #f0c6b9;
  background: #fff8f5;
}

.sales-release-category-grid b,
.sales-release-category-grid span {
  display: block;
}

.sales-release-category-grid b {
  color: #244966;
}

.sales-release-category-grid span {
  margin-top: 5px;
  color: #6c8297;
  font-size: 13px;
}

.sales-release-next {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 15px;
  color: #fff;
  background: #173f63;
}

.sales-release-next div {
  min-width: 0;
}

.sales-release-next small,
.sales-release-next strong,
.sales-release-next span,
.sales-release-next em {
  display: block;
}

.sales-release-next small {
  opacity: 0.74;
}

.sales-release-next strong {
  margin-top: 3px;
  font-size: 17px;
}

.sales-release-next span {
  margin-top: 4px;
  color: #d9e7f3;
  font-size: 13px;
}

.sales-release-next em {
  margin-top: 7px;
  color: #fff4bd;
  font-size: 12px;
  font-style: normal;
}

.sales-release-next button {
  flex: 0 0 auto;
  color: #15496f;
  background: #fff;
  border-color: transparent;
}

.sales-release-human-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 13px;
  color: #506b82;
  background: #edf5fc;
}

.sales-release-human-summary b {
  color: #174e79;
}

.sales-release-human-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sales-release-human-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce7f0;
  border-radius: 14px;
  background: #fff;
}

.sales-release-human-list article.blocked {
  border-color: #edbfae;
  background: #fff8f5;
}

.sales-release-human-list article.waiting {
  border-color: #c7dced;
  background: #f5f9fc;
}

.sales-release-human-list article.passed {
  border-color: #b9e2d5;
  background: #f4fbf8;
}

.sales-release-human-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #1b6eb4;
  font-weight: 800;
}

.sales-release-human-list article.waiting .sales-release-human-step {
  color: #416781;
  background: #dbe9f3;
}

.sales-release-human-list article.passed .sales-release-human-step {
  background: #24957a;
}

.sales-release-human-list p {
  margin-top: 7px;
  color: #5e768b;
  line-height: 1.6;
}

.sales-release-human-list button {
  margin-top: 10px;
}

.sales-release-human-list article.waiting .sales-release-check-head em {
  color: #416781;
  background: #e3eef6;
}

.sales-release-technical-note {
  margin: 0 14px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #667f93;
  background: #f5f8fb;
  font-size: 13px;
}

.sales-release-checks {
  margin-top: 14px;
  border: 1px solid #dbe6f0;
  border-radius: 14px;
  background: #fff;
}

.sales-release-checks > summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #244966;
  font-weight: 800;
}

.sales-release-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.sales-release-check-list article {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  background: #fafcfe;
}

.sales-release-check-list article.passed {
  border-color: #c3e8dc;
  background: #f5fcf9;
}

.sales-release-check-list article.blocked {
  border-color: #f1cbc0;
  background: #fff9f7;
}

.sales-release-check-head {
  align-items: flex-start;
}

.sales-release-check-head b {
  color: #24445f;
}

.sales-release-check-head em {
  padding: 3px 7px;
  border-radius: 999px;
  color: #9b5a2b;
  background: #fff0e8;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.sales-release-check-list article.passed .sales-release-check-head em {
  color: #08735d;
  background: #ddf7ee;
}

.sales-release-check-list p {
  margin-top: 7px;
  color: #677f94;
  font-size: 13px;
  line-height: 1.55;
}

.sales-release-edit-location {
  display: block;
  margin-top: 7px;
  color: #245f8f;
  font-size: 12px;
  font-weight: 700;
}

.sales-release-check-list button {
  margin-top: 9px;
}

.sales-release-control .sales-release-error {
  margin-top: 12px;
}

.sales-release-profile-editor {
  margin: 16px 0 20px;
  border: 1px solid #cfe0f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 76, 122, 0.06);
}

.sales-release-profile-editor > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  color: #1c476a;
  list-style: none;
}

.sales-release-profile-editor > summary::-webkit-details-marker {
  display: none;
}

.sales-release-profile-editor > summary span,
.sales-release-profile-editor > summary b,
.sales-release-profile-editor > summary small {
  display: block;
}

.sales-release-profile-editor > summary small {
  margin-top: 4px;
  color: #6c8297;
  font-weight: 400;
}

.sales-release-profile-editor > summary em {
  padding: 5px 9px;
  border-radius: 999px;
  color: #1168b7;
  background: #e9f4ff;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.sales-release-profile-body {
  padding: 0 18px 18px;
}

.sales-release-profile-note {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #536e86;
  background: #f4f8fc;
  line-height: 1.55;
}

.customer-release-compact-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f8fc;
  color: #536e86;
}

.customer-release-compact-status b {
  color: #204b6e;
}

@media (max-width: 980px) {
  .sales-release-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sales-release-control {
    padding: 15px;
    border-radius: 16px;
  }

  .sales-release-control-head,
  .sales-release-next,
  .sales-release-human-summary,
  .sales-release-profile-editor > summary {
    align-items: stretch;
    flex-direction: column;
  }

  .sales-release-stage {
    min-width: 0;
    text-align: left;
  }

  .sales-release-category-grid,
  .sales-release-check-list {
    grid-template-columns: 1fr;
  }

  .sales-release-human-list article {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px;
  }

  .sales-release-human-step {
    width: 30px;
    height: 30px;
  }

  .sales-release-next button {
    width: 100%;
  }
}
