.document-management-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 24px;
}

.document-management-heading h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.document-management-heading p:last-child {
  max-width: 760px;
  margin: 0;
  color: #7f969c;
  font-size: 11px;
  line-height: 1.65;
}

.folder-all {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #8ca0a6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.folder-all b {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 12px;
  color: #031017;
  background: var(--cyan);
  font-size: 8px;
}

.folder-all.selected,
.folder-all:hover {
  color: var(--bright);
  border-color: rgba(43, 224, 211, 0.42);
  background: rgba(43, 224, 211, 0.07);
}

.folder-grid > a {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(5, 24, 34, 0.74);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.folder-grid > a:hover,
.folder-grid > a.selected {
  border-color: rgba(43, 224, 211, 0.42);
  background: rgba(43, 224, 211, 0.07);
  transform: translateY(-2px);
}

.download-link {
  width: auto;
  min-width: 40px;
  padding: 0 13px;
  gap: 8px;
  border-radius: 20px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.download-link span {
  font-size: 17px;
  line-height: 1;
}

.list > a > .document-download-action {
  color: var(--cyan);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .document-management-heading {
    align-items: start;
    flex-direction: column;
  }

  .folder-all {
    align-self: flex-start;
  }
}

@media (max-width: 560px) {
  .download-link {
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .download-link span {
    font-size: 17px;
  }

  .list > a > .document-download-action {
    font-size: 0;
  }

  .list > a > .document-download-action::after {
    content: "↓";
    font-size: 18px;
  }
}
