/* module.css */

.webb-documentExtraction {
  overflow: hidden;
}

/* RIGHT */

.webb-documentExtraction__eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #216FED;
  font-weight: 600;
  margin-bottom: 18px;
}

.webb-documentExtraction__heading {
  font-size: 50px;
  line-height: 1.05;
  color: var(--midnight, #020035);
  font-weight: 600;
  margin-bottom: 24px;
}

.webb-documentExtraction__description {
  font-size: 18px;
  line-height: 1.7;
  color: #4b5563;
}

/* CARD */

.webb-docCard {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #dbe3ef;
  overflow: hidden;
}

/* TOP */

.webb-docCard__top {
  padding: 18px 24px;
  border-bottom: 1px solid #dbe3ef;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.webb-docCard__topLeft {
  display: flex;
  align-items: center;
  gap: 14px;
}

.webb-docCard__badge {
  background: #dcfce7;
  color: #15803d;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.webb-docCard__number {
  font-weight: 700;
  color: #111827;
}

.webb-docCard__status {
  position: relative;
  min-width: 140px;
  height: 28px;
}

.webb-docCard__status > div {
  position: absolute;
  right: 0;
  top: 0;

  opacity: 0;
  transform: translateY(8px);

  transition: .35s ease;

  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 13px;
  font-weight: 600;
}

.webb-docCard.extracting .status-extracting {
  opacity: 1;
  transform: translateY(0);
  color: #216FED;
}

.webb-docCard.complete .status-complete {
  opacity: 1;
  transform: translateY(0);
  color: #16a34a;
}

.webb-docCard__pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #216FED;

  animation: webbPulse 1s infinite;
}

@keyframes webbPulse {

  0% {
    opacity: .4;
    transform: scale(.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    opacity: .4;
    transform: scale(.9);
  }

}

/* SECTIONS */

.webb-docSection {
  background: #fbfcfe;
  margin: 16px;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
}

.webb-docSection__title {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 18px;
}

.webb-docField__label {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.webb-docField__value {
  background: #f5f7fb;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  min-height: 44px;

  display: flex;
  align-items: center;

  padding: 0 12px;

  color: #111827;
  font-weight: 500;
  font-size: 12px;

  transition: .3s ease;
}

.webb-docField__value.filled {
  background: white;
}

/* TABLE */

.webb-docTable {
  background: #fbfcfe;
  margin: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  overflow: hidden;
}

.webb-docTable__top {
  padding: 18px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.webb-docTable__title {
  font-weight: 700;
}

.webb-docTable__count {
  color: transparent;
  transition: .3s ease;

}

.webb-docTable__count.filled {

  color: #9ca3af;
  font-size: 13px;
}


.webb-docTable__header,
.webb-docTableRow {
  display: grid;
  grid-template-columns: .4fr 3fr 1fr 1fr 1fr;
  gap: 14px;

  padding: 12px 18px;
}

.webb-docTable__header {
  border-top: 1px solid #dbe3ef;
  border-bottom: 1px solid #dbe3ef;

  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.webb-docTableRow {
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
}

.webb-docTableRow:last-child {
  border-bottom: none;
}

.fillable {
  color: transparent;
  transition: .3s ease;
}

.fillable.filled {
  color: #111827;
}



.webb-docTableRow {
  font-size:12px;
  min-height: 42px;
}

.webb-docTableRow > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.webb-docTable__footer {
  display: grid;
  grid-template-columns: .4fr 3fr 1fr 1fr 1fr;

  gap: 14px;

  padding: 12px 18px;

  border-top: 1px solid #eef2f7;

  font-size: 11px;
  color: #6b7280;
}


.webb-docTable__footerSpacer {
  opacity: 0;
}


/* Mobile font */
@media(max-width: 767px) {

  .webb-documentExtraction__heading {
    font-size: 34px;
  }

/* Mobile font */
@media (max-width: 767px) {

  /* Show the right content (text) first on mobile */
  .webb-documentExtraction .grid > div:first-child {
    order: 2; /* Left card */
  }

  .webb-documentExtraction .grid > div:last-child {
    order: 1; /* Right content */
  }

  .webb-documentExtraction__heading {
    font-size: 34px;
  }

}