/* Scoped styles for the owner documents component only. */

.pg-docs {
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line, #2b3138);
}

.pg-docs-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text, #edf0f2);
}

.pg-docs-status {
  margin: 0 0 12px;
  color: var(--muted, #a4acb6);
}

.pg-docs-status--error {
  color: #e8a0a0;
}

.pg-docs-status--ok {
  color: var(--green, #8ecbaa);
}

.pg-docs-status--loading {
  color: var(--muted, #a4acb6);
}

.pg-docs-empty {
  margin: 0 0 16px;
}

.pg-docs-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pg-docs-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel, #171b20);
  border: 1px solid var(--line, #2b3138);
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.pg-docs-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 180px;
}

.pg-docs-doc-title {
  font-weight: 600;
  color: var(--text, #edf0f2);
}

.pg-docs-doc-meta {
  font-size: 0.9rem;
}

.pg-docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pg-docs-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.pg-docs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pg-docs-field span {
  color: var(--muted, #a4acb6);
  font-size: 0.9rem;
}

.pg-docs-field input[type="text"],
.pg-docs-field input[type="file"] {
  width: 100%;
  max-width: 100%;
}

.pg-docs-submit {
  align-self: flex-start;
}

@media (max-width: 520px) {
  .pg-docs-item {
    flex-direction: column;
    align-items: stretch;
  }
}
