.smd-financial-documents {
  --smd-doc-green: #064d3e;
  --smd-doc-coral: #ff5c50;
  --smd-doc-rose: #ff3852;
  --smd-doc-cream: #fbf8f4;
  --smd-doc-line: #eadfd7;
  margin: 30px 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--smd-doc-line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #fff 62%, #f4faf7 100%);
  box-shadow: 0 18px 44px rgba(6, 77, 62, 0.08);
  color: var(--smd-doc-green);
}

.smd-financial-documents__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--smd-doc-line);
}

.smd-financial-documents__eyebrow {
  margin: 0 0 5px;
  color: var(--smd-doc-coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.smd-financial-documents__header h2 {
  margin: 0;
  color: var(--smd-doc-green);
  font-family: var(--h2_typography-font-family, var(--h1_typography-font-family, Georgia, serif));
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.08;
}

.smd-financial-documents__count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #d8e7e1;
  border-radius: 999px;
  background: #f1f8f5;
  color: var(--smd-doc-green);
  font-size: 12px;
  font-weight: 700;
}

.smd-financial-documents__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.smd-financial-document {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--smd-doc-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.smd-financial-document::after {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 96px;
  height: 96px;
  border: 18px solid rgba(255, 92, 80, 0.055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.smd-financial-document:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 92, 80, 0.38);
  box-shadow: 0 13px 26px rgba(6, 77, 62, 0.08);
}

.smd-financial-document__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.smd-financial-document__badge {
  color: var(--smd-doc-coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.smd-financial-document__status {
  max-width: 58%;
  padding: 5px 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f4f2;
  color: #5a645f;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smd-financial-document__status--success {
  background: #edf7f2;
  color: #17634f;
}

.smd-financial-document__status--pending {
  background: #fff3e9;
  color: #a45427;
}

.smd-financial-document__status--danger {
  background: #fff0f1;
  color: #b22d43;
}

.smd-financial-document h3 {
  margin: 0;
  color: var(--smd-doc-green);
  font-family: var(--body_typography-font-family, inherit);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.smd-financial-document__number {
  margin: 4px 0 14px;
  color: #596661;
  font-size: 13px;
}

.smd-financial-document__meta {
  display: grid;
  gap: 6px;
  margin: 0 0 13px;
}

.smd-financial-document__meta > div {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.smd-financial-document__meta dt,
.smd-financial-document__meta dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.smd-financial-document__meta dt {
  color: #75807b;
}

.smd-financial-document__meta dd {
  overflow-wrap: anywhere;
  color: var(--smd-doc-green);
  font-weight: 700;
  text-align: right;
}

.smd-financial-document__description {
  margin: 0 0 14px;
  color: #68736e;
  font-size: 12px;
  line-height: 1.45;
}

.smd-financial-document__action {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid var(--smd-doc-green);
  border-radius: 10px;
  background: var(--smd-doc-green);
  color: #fff !important;
  font-family: var(--body_typography-font-family, inherit);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.smd-financial-document__action:hover,
.smd-financial-document__action:focus-visible {
  border-color: var(--smd-doc-coral);
  background: linear-gradient(90deg, var(--smd-doc-coral), var(--smd-doc-rose));
  box-shadow: 0 9px 18px rgba(255, 56, 82, 0.18);
}

.smd-financial-document__action:focus-visible {
  outline: 3px solid rgba(255, 92, 80, 0.28);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .smd-financial-documents {
    margin: 22px 0;
    padding: 18px;
    border-radius: 16px;
  }

  .smd-financial-documents__header {
    align-items: flex-start;
  }

  .smd-financial-documents__grid {
    grid-template-columns: 1fr;
  }

  .smd-financial-document {
    min-height: 0;
  }
}

@media (max-width: 430px) {
  .smd-financial-documents__header {
    display: block;
  }

  .smd-financial-documents__count {
    display: inline-block;
    margin-top: 12px;
  }

  .smd-financial-document__meta > div {
    display: block;
  }

  .smd-financial-document__meta dd {
    margin-top: 2px;
    text-align: left;
  }

  .smd-financial-document__action {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smd-financial-document,
  .smd-financial-document__action {
    transition: none;
  }
}
