.shared-docs-header {
  width: 100%;
  height: auto;
  display: flex;
  align-items: stretch;
  gap: 1.332vh;
  margin-bottom: 1.332vh;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.shared-docs-header__project-panel,
.shared-docs-header__functions-panel {
  height: auto;
  padding: 2.22vh;
  background: var(--comp-mgmt-worker-color-glass-surface, #F7F1EC0F);
  border-radius: 1.332vh;
  display: flex;
  align-items: center;
  gap: 1.332vh;
  box-sizing: border-box;
}

.shared-docs-header__project-panel {
  flex: 1 1 auto;
  min-width: 50.616vh;
}

.shared-docs-header__functions-panel {
  flex: 0 0 calc(64.38vh + 2 * var(--app-border-width));
}

.shared-docs-header__project-panel,
.shared-docs-header__functions-panel,
.shared-docs-header__project-card,
.shared-docs-header__feature-card {
  border: var(--app-border-width) solid var(--comp-mgmt-worker-color-glass-border, #F7F1EC14);
}

.shared-docs-header__project-card {
  width: 100%;
  height: 14.874vh;
  padding: 1.776vh 2.22vh;
  background: var(--comp-mgmt-worker-color-panel-dark, #141720AD);
  border-radius: 1.332vh;
  display: flex;
  box-sizing: border-box;
}

.shared-docs-header .header-project-avatar {
  display: none;
}

.shared-docs-header .header-project-text {
  width: 100%;
  height: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.444vh;
}

.shared-docs-header .header-project-name {
  max-width: 100%;
  margin: 0;
  color: var(--comp-mgmt-worker-color-text-primary, #F7F1EC);
  font-size: 2.22vh;
  font-weight: 700;
  line-height: 2.664vh;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-docs-header .header-project-name--no-project {
  color: #D0D0D1;
}

.shared-docs-header .header-project-address {
  height: 1.998vh;
  min-height: 1.998vh;
  color: var(--comp-mgmt-worker-color-text-disabled, #A8A29E);
  font-size: 1.554vh;
  font-weight: 500;
  line-height: 1.998vh;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-docs-header .docs-contract-layout__project-card--no-project .header-project-text,
.shared-docs-header__project-card:has(.header-project-name--no-project) .header-project-text {
  height: 100%;
}

.shared-docs-header__project-navigation {
  display: flex;
  align-items: center;
  gap: 0.888vh;
  margin-top: 2.22vh;
}

.shared-docs-header__project-navigation-chip {
  width: 11.65vh;
  height: 3.552vh;
  padding: 0.444vh 0.888vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.888vh;
  background: var(--comp-mgmt-worker-color-glass-surface, #F7F1EC0F);
  border-radius: 0.666vh;
  box-sizing: border-box;
  cursor: pointer;
}

.shared-docs-header__project-navigation-chip:first-child {
  width: 12.876vh;
}

.shared-docs-header__project-navigation-chip:nth-child(2) {
  width: 12.68vh;
}

.shared-docs-header__project-navigation-text {
  flex: 1 1 0;
  min-width: 0;
  color: #D0D0D1;
  font-size: 1.554vh;
  font-weight: 500;
  line-height: 1.998vh;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-docs-header__project-navigation-chip--close {
  display: none;
  width: 3.552vh;
  padding: 0.444vh;
  gap: 0;
}

.shared-docs-header__feature-cards {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.332vh;
}

.shared-docs-header__feature-card {
  flex: 0 0 13.986vh;
  width: 13.986vh;
  height: 14.874vh;
  padding: 1.332vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.332vh;
  background: var(--comp-mgmt-worker-color-panel-dark, #141720AD);
  border-radius: 1.3vh;
  box-sizing: border-box;
  overflow: hidden;
}

.shared-docs-header__feature-card[onclick] {
  cursor: pointer;
}

.shared-docs-header :is(.docs-contract-layout__feature-card--active, .docs-acts-layout__feature-card--active) {
  border-color: var(--comp-mgmt-worker-color-status-readiness, #6F82BF);
}

.shared-docs-header__feature-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.888vh;
}

.shared-docs-header__feature-title {
  color: #D0D0D1;
  font-size: 1.776vh;
  font-weight: 700;
  line-height: 2.664vh;
}

.shared-docs-header__feature-subtitle-group {
  display: flex;
  flex-direction: column;
  gap: 0.222vh;
}

.shared-docs-header__feature-subtitle-main,
.shared-docs-header__feature-subtitle-accent {
  font-size: 1.332vh;
  font-weight: 500;
  line-height: 1.776vh;
}

.shared-docs-header__feature-subtitle-main {
  color: #7B8087;
}

.shared-docs-header__feature-subtitle-accent {
  color: #6F82BF;
}

.shared-docs-header__feature-subtitle-accent--red {
  color: #E5524C;
}

.shared-docs-header__feature-subtitle-accent--green {
  color: #2ECC71;
}

/* Общие меню гео-фильтров документации сохраняют классы обоих разделов. */
.sld:is(.docs-contract-nav-menu, .docs-acts-nav-menu) {
  min-width: 22.2vh;
  background: rgba(20, 23, 32, 0.48);
  border: none;
  border-radius: 1.776vh;
  outline: var(--app-border-width) solid rgba(247, 241, 236, 0.08);
  box-shadow: none;
}

.sld:is(.docs-contract-nav-menu, .docs-acts-nav-menu) .sld__item {
  height: auto;
  min-height: 3.552vh;
  padding: 0.444vh 1.332vh;
  color: #D0D0D1;
  font-weight: 500;
  font-size: 1.554vh;
  line-height: 2.664vh;
  gap: 1.332vh;
  border-radius: 0.666vh;
}

.sld:is(.docs-contract-nav-menu, .docs-acts-nav-menu) .sld__item:hover,
.sld:is(.docs-contract-nav-menu, .docs-acts-nav-menu) .sld__item--selected {
  background-color: rgba(247, 241, 236, 0.06);
}

.sld:is(.docs-contract-nav-menu, .docs-acts-nav-menu) .sld__item-label {
  width: 11.1vh;
  flex: 0 0 11.1vh;
  color: #D0D0D1;
}

.sld:is(.docs-contract-nav-menu, .docs-acts-nav-menu) .sld__item-value {
  width: 4.44vh;
  min-width: 4.44vh;
  color: #D0D0D1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 12.21vh;
}
