.application-draft-preview {
  width: min(100%, 620px);
  max-width: 620px;
  gap: 12px;
  background: #ffffff;
}

.application-draft-preview.reimbursement-draft-preview {
  max-width: 520px;
  padding: 10px 12px;
  border-color: #d8e4f0;
  background: #ffffff;
}

.reimbursement-draft-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.reimbursement-draft-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.2);
  border-radius: 4px;
  background: #f7fbff;
  color: var(--theme-primary-active, #255b7d);
  font-size: 16px;
}

.reimbursement-draft-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.reimbursement-draft-main strong {
  color: #102033;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.reimbursement-draft-main p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.reimbursement-draft-main p span {
  color: #1e293b;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.reimbursement-draft-link {
  display: inline;
  margin-left: 8px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--theme-primary-active, #255b7d);
  font: inherit;
  font-weight: 850;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.18s ease, outline-color 0.18s ease;
}

.reimbursement-draft-link:hover:not(:disabled) {
  color: var(--theme-primary, #3a7ca5);
}

.reimbursement-draft-link:focus-visible {
  outline: 2px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.24);
  outline-offset: 2px;
}

.reimbursement-draft-link:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.reimbursement-draft-pending-detail {
  display: inline;
  margin-left: 8px;
  color: #94a3b8;
  font-weight: 760;
}

.application-draft-preview .application-draft-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  justify-content: initial;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6edf5;
}

.application-draft-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.22);
  border-radius: 4px;
  background: #f4f9fc;
  color: var(--theme-primary-active, #255b7d);
  font-size: 18px;
}

.application-draft-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.application-draft-title strong {
  color: #102033;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.application-draft-title small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.application-draft-status {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.24);
  border-radius: 4px;
  background: #f7fbff;
  color: var(--theme-primary-active, #255b7d);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.application-draft-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #d7e4f2;
  border-radius: 4px;
  overflow: hidden;
  background: #d7e4f2;
}

.application-draft-brief-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  background: #ffffff;
  font-size: 12px;
}

.application-draft-brief-item.is-primary {
  grid-column: 1 / -1;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 48px;
  background: #f8fbff;
}

.application-draft-brief-item span {
  color: #64748b;
  font-weight: 760;
}

.application-draft-brief-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-weight: 850;
}

.application-draft-brief-item.is-primary strong {
  color: #102033;
  font-size: 13px;
}

.application-draft-footer {
  display: block;
}

.application-draft-footer p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.application-draft-detail-link {
  display: inline;
  margin: 0 1px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--theme-primary-active, #255b7d);
  font: inherit;
  font-weight: 850;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.18s ease, outline-color 0.18s ease;
}

.application-draft-detail-link:hover:not(:disabled) {
  color: var(--theme-primary, #3a7ca5);
}

.application-draft-detail-link:focus-visible {
  outline: 2px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.24);
  outline-offset: 2px;
}

.application-draft-detail-link:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

@media (max-width: 640px) {
  .application-draft-preview .application-draft-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .application-draft-status {
    grid-column: 2;
    justify-self: start;
  }

  .application-draft-brief {
    grid-template-columns: 1fr;
  }

  .application-draft-brief-item {
    border: 0;
  }

}
