/*
 * "Your files" beside Add a file, and its window (js/patient/your-files.js; 27 Nov 2026).
 * The button is the app's secondary pill and the window the standard UiDialog: this file holds the
 * row of two buttons and the list's spacing only.
 */

/* "Add a file" and "Your files (4)" on one row, wrapping on a narrow phone. */
.acp-add-file-row,
.acp-add-file-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.acp-your-files-btn { width: auto; }
.acp-your-files-btn[hidden] { display: none; }
.acp-your-files-count { font-variant-numeric: tabular-nums; }

/* The window: a lead line, then one small heading per card with its files under it. */
.acp-yf { display: flex; flex-direction: column; gap: 14px; }
.acp-yf-lead,
.acp-yf-empty {
  margin: 0;
  font-size: var(--fs-14, 14px);
  color: var(--color-muted);
}
.acp-yf-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.acp-yf-card {
  margin: 0 0 6px;
  font-size: var(--fs-12, 12px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.acp-yf-list { list-style: none; margin: 0; padding: 0; }
.acp-yf-row { padding: 10px 0; border-top: 1px solid var(--color-line); }
.acp-yf-row:first-child { border-top: 0; padding-top: 2px; }

.acp-yf-line { display: flex; align-items: center; gap: 12px; }
.acp-yf-icon { flex: 0 0 auto; width: 18px; text-align: center; color: var(--color-muted); }
.acp-yf-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

/* A long phone file name breaks rather than pushing Replace off the window. */
.acp-yf-name {
  font-size: var(--fs-14, 14px);
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.acp-yf-meta { font-size: var(--fs-12, 12px); color: var(--color-muted); }

.acp-yf-replace { flex: 0 0 auto; width: auto; min-height: 36px; padding: 0 14px; }

/* "Replace old with new?" under the row, with the earlier-version line and the two buttons. */
.acp-yf-confirm {
  margin: 10px 0 0 30px;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-panel);
}
.acp-yf-confirm[hidden] { display: none; }
.acp-yf-question { margin: 0; font-size: var(--fs-14, 14px); overflow-wrap: anywhere; }
.acp-yf-keeps { margin: 4px 0 0; font-size: var(--fs-13, 13px); color: var(--color-muted); }
.acp-yf-confirm .acp-ff-error { margin: 8px 0 0; }
.acp-yf-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.acp-yf-actions .ui-btn { width: auto; }

@media (max-width: 520px) {
  .acp-yf-confirm { margin-left: 0; }
}
