/* Lead-to-cash portal polish — Close & Collect block (F51) */
.l2c-close-collect {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.l2c-close-collect__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.l2c-close-collect__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.l2c-close-collect__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
  background: #d1fae5;
  padding: 4px 10px;
  border-radius: 999px;
}

.l2c-close-collect__summary {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.l2c-close-collect__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.l2c-close-collect__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
}

.l2c-close-collect__step.is-active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  color: #1e40af;
}

.l2c-close-collect__step.is-done {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
}

.l2c-close-collect__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #f1f5f9;
  flex-shrink: 0;
}

.l2c-close-collect__step.is-active .l2c-close-collect__icon {
  background: #2563eb;
  color: #fff;
}

.l2c-close-collect__step.is-done .l2c-close-collect__icon {
  background: #10b981;
  color: #fff;
}

@media (max-width: 480px) {
  .l2c-close-collect {
    padding: 16px;
    border-radius: 14px;
  }
}

.l2c-portal-analytics {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  margin-bottom: 12px;
}

.l2c-portal-analytics--alert {
  border-color: #f59e0b;
  background: #fffbeb;
}

.l2c-portal-analytics__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.l2c-portal-analytics__title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.l2c-portal-analytics__body {
  margin: 8px 0 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.l2c-portal-analytics__cta {
  margin-top: 10px;
}

/* F06 — Client Room what's next stepper */
.portal-whats-next__item[data-whats-next-key] {
  scroll-margin-top: 72px;
}

.deal-portal-whats-next {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.deal-portal-whats-next__head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.deal-portal-whats-next__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.deal-portal-whats-next__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
}

.deal-portal-whats-next__step.is-active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  color: #1e40af;
}

.deal-portal-whats-next__icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  flex-shrink: 0;
}

.deal-portal-whats-next__step.is-active .deal-portal-whats-next__icon {
  background: #2563eb;
  color: #fff;
}

.deal-portal-whats-next__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.deal-portal-whats-next__label {
  font-size: 13px;
  font-weight: 700;
  color: inherit;
}

.deal-portal-whats-next__hint {
  font-size: 12px;
  color: #64748b;
}

/* Staff mirror — Client open steps (deal / contact) */
.contact-overview-top .staff-client-open-steps {
  margin: 10px 0 12px;
  border-radius: 14px;
}

.staff-client-open-steps {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.staff-client-open-steps__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.staff-client-open-steps__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.staff-client-open-steps__count {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.staff-client-open-steps__more {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.staff-client-open-steps__list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.staff-client-open-steps__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.staff-client-open-steps__step.is-primary {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
}

.staff-client-open-steps__icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.staff-client-open-steps__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.staff-client-open-steps__label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.staff-client-open-steps__hint {
  font-size: 12px;
  color: #64748b;
}

.staff-client-open-steps__analytics {
  margin: 0 0 10px;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.staff-client-open-steps__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-client-open-steps__btn {
  min-height: 36px;
}

@media (max-width: 480px) {
  .staff-client-open-steps__actions {
    flex-direction: column;
  }
  .staff-client-open-steps__btn {
    width: 100%;
    min-height: 44px;
  }
}

/* F08 — merged portal timeline */
.l2c-portal-timeline__row {
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.l2c-portal-timeline__text {
  line-height: 1.45;
}

/* F09 — read receipts */
.portal-message-read-receipt,
.contact-portal-msg-read {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
}

.portal-room-widget-msg__meta .portal-message-read-receipt {
  display: inline-block;
}

/* F10 — invite role picker */
.portal-invite-role {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  min-width: min(100%, 280px);
}

.portal-invite-role__label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.portal-invite-role__select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
}
