.document-cards {
  width: 100%;
  color: #000000;
  font-family: inherit;
  box-sizing: border-box;
}
.document-cards *,
.document-cards *::before,
.document-cards *::after {
  box-sizing: border-box;
}
.document-cards__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.document-cards__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
  padding: 1rem 1.75rem;
  background-color: #ffffff;
  border: 0.0625rem solid transparent;
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.document-cards__item:hover {
  border-color: #e5e9ec;
  box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 5%);
}
.document-cards__item:focus-visible {
  outline: 0.125rem solid #ea591f;
  outline-offset: 0.1875rem;
}
.document-cards__content {
  flex: 1 1 auto;
  min-width: 0;
  position: static;
}
.document-cards__title {
  margin: 0;
  color: #000000;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.document-cards__meta {
  margin: 0.375rem 0 0;
  color: #7793a8;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
}
.document-cards__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
}
.document-cards__document-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.document-cards__document-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
.document-cards__signature,
.document-cards__file-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 1.25rem;
  padding: 0.25rem 0.5rem;
  border: 0.0625rem solid transparent;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.document-cards__signature {
  color: #000000;
  background-color: #ffffff;
  border-color: #d8dee3;
}
.document-cards__signature:hover {
  background-color: #f4f6f8;
  border-color: #7793a8;
}
.document-cards__signature:active {
  background-color: #e9eef2;
}
.document-cards__file-link {
  color: #ffffff;
  background-color: #ea591f;
  border-color: #ea591f;
}
.document-cards__file-link:hover {
  background-color: #d94c16;
  border-color: #d94c16;
}
.document-cards__file-link:active {
  background-color: #bf4010;
  border-color: #bf4010;
}
.document-cards__signature:focus-visible,
.document-cards__file-link:focus-visible {
  outline: 0.125rem solid #000000;
  outline-offset: 0.1875rem;
}
.document-cards__children {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  margin-left: 1.5rem;
  padding-left: 1.25rem;
  border-left: 0.125rem solid #d8dee3;
}
.document-cards__item--child {
  padding: 1rem 1.75rem;
  border-radius: 0.75rem;
  background-color: #ffffff;
}
.document-cards__item--child .document-cards__title {
  font-size: 0.875rem;
  font-weight: 500;
}
.document-cards__item--child .document-cards__meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
}
@media (max-width: 1023px) {
  .document-cards__item {
    gap: 1rem;
    padding: 1.25rem 1.375rem;
  }
  .document-cards__actions {
    gap: 0.5rem;
  }
}
@media (max-width: 767px) {
  .document-cards__list {
    gap: 0.75rem;
  }
  .document-cards__item {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.125rem;
    border-radius: 0.75rem;
  }
  .document-cards__content {
    flex: 1 1 100%;
  }
  .document-cards__title {
    font-size: 0.875rem;
  }
  .document-cards__meta {
    font-size: 0.75rem;
  }
  .document-cards__actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }
  .document-cards__children {
    gap: 0.5rem;
    margin-top: 0.625rem;
    margin-left: 0.625rem;
    padding-left: 0.75rem;
  }
  .document-cards__item--child {
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 0.625rem;
  }
  .document-cards__item--child .document-cards__title {
    font-size: 0.75rem;
  }
  .document-cards__signature,
  .document-cards__file-link {
    min-height: 0.25rem;
    padding: 0.25rem 0.5rem;
  }
}
@media (max-width: 359px) {
  .document-cards__item {
    padding: 0.875rem;
  }
  .document-cards__actions {
    gap: 0.5rem;
  }
  .document-cards__signature,
  .document-cards__file-link {
    padding: 0.5625rem 0.625rem;
    font-size: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .document-cards__item,
  .document-cards__signature,
  .document-cards__file-link {
    transition: none;
  }
}
