.documentos-content-step {
  display: flex;
  flex-direction: column;
  height: 560px;
  min-height: 560px;
  max-height: 560px;
}

.documentos-content-step-intro {
  flex: 0 0 auto;
  margin-bottom: 0.65rem !important;
}

.documentos-content-tabs {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.documentos-content-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.documentos-content-tab:hover {
  background: #eef2ff;
  color: #1f6fb2;
}

.documentos-content-tab.is-active {
  background: #e8f1ff;
  color: #1f6fb2;
  border-color: #93c5fd;
}

.documentos-content-tab-count {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 2px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
}

.documentos-content-tab.is-active .documentos-content-tab-count {
  background: #bfdbfe;
  color: #1e40af;
}

.documentos-content-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #fff;
  padding: 0.85rem 0.9rem 1rem;
}

.documentos-content-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex: 0 0 auto;
  margin-bottom: 0.65rem;
  min-width: 0;
}

.documentos-content-panel-title {
  flex: 0 1 auto;
  font-weight: 700;
  color: #1C2B4D;
  margin-bottom: 0;
  font-size: 0.95rem;
  min-width: 0;
}

.documentos-content-panel-header .documentos-pasos-legend--badge {
  flex: 0 1 auto;
  margin-left: auto;
  max-width: none;
  width: auto;
  align-self: center;
  padding: 0.28rem 0.55rem;
  border: 1px solid #B7D3E9;
  border-radius: 2px;
  background: #EEF3F8;
  gap: 0.35rem 0.75rem;
}

.documentos-content-panel > .documentos-pasos-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.documentos-content-line-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.documentos-content-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
  padding: 0.55rem 0.65rem;
  border: 1px solid #eef2f7;
  border-radius: 2px;
  background: #fbfdff;
}

.documentos-content-line-main {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
}

.documentos-content-line-title {
  font-weight: 600;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.documentos-content-line-qty {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: #475569;
  background: #f1f5f9;
  border-radius: 2px;
  padding: 0.05rem 0.35rem;
  white-space: nowrap;
}

.documentos-content-line-notes,
.documentos-content-line-files {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #64748b;
}

.documentos-content-line-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.documentos-content-line-actions {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.documentos-content-add {
  border-top: 1px dashed #e2e8f0;
  padding-top: 0.75rem;
}

.documentos-content-article-hint {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.documentos-content-files-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.documentos-content-draft-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.documentos-content-file-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
