/*
 * Homeport Lender portal — the parts the shared Homeport Shift surface does not
 * already cover: loan progress, conditions and documents. Everything else (the
 * wordmark, header, hero, sign-in card, sidebar, cards, messages, profile) comes
 * from /assets/styles.css, which is the same sheet the agent portal uses.
 */

.progress {
  height: 8px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}

.milestones li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.milestones li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.milestones li.is-done::before {
  background: var(--green);
}

.milestones li.is-current {
  color: var(--ink);
  font-weight: 600;
}

.milestones li.is-current::before {
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}

.file-card .progress {
  margin-top: 18px;
}

.file-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.file-amount {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.file-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--body);
}

.doc-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.doc-list .doc-row:first-child {
  border-top: 0;
}

.doc-name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.doc-meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.doc-row .link-arrow {
  font-size: 13px;
}

.doc-group + .doc-group {
  margin-top: 20px;
}

.doc-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.doc-group-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.doc-count {
  font-size: 12.5px;
  color: var(--muted);
}

.attention-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.attention-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.attention-list .attention-row:first-child {
  border-top: 0;
}

.attention-name {
  margin: 0;
  font-weight: 500;
  color: var(--ink-soft);
}

.attention-owner {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.attention-due {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .doc-row,
  .attention-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .doc-row .link-arrow {
    grid-column: 1 / -1;
  }

  .attention-due {
    display: none;
  }
}
