/* نماذج بالرابط (#/forms, #/form-view/<id>): one card a link, the answers in the paper's order, the rest behind a tap. */
/* The page uses the whole width (its buttons at the head's far edge in both languages, its empty line centred on the page). */
.fa-page { max-width: none; }
.fa-tabs { margin: 0 0 16px; flex-wrap: wrap; }
.fa-rowc { display: block; padding: 12px 16px; margin: 0 0 10px; color: inherit; text-decoration: none; }
.fa-rowc:hover { border-color: var(--ui-line-2); }
.fa-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.fa-name { min-width: 0; overflow-wrap: anywhere; }
.fa-head-acts { gap: 8px; flex-wrap: wrap; }
.fa-facts { margin: 0 0 12px; line-height: 1.8; }
.fa-badge { margin-inline-start: 4px; font-size: 11px; padding: 0 7px; }

.fa-link { display: flex; gap: 18px; align-items: flex-start; padding: 16px; margin: 0 0 14px; }
.fa-qr { flex: none; width: 132px; }
.fa-qr svg { display: block; width: 100%; height: auto; }
.fa-link-b { min-width: 0; flex: 1; }
.fa-url { font-size: 13px; padding: 8px 10px; background: var(--ui-bg, #f6f5f1); border: 1px solid var(--ui-line); border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
.fa-acts { gap: 8px; flex-wrap: wrap; margin: 10px 0 8px; }
.fa-link p, .fa-result p { margin: 0 0 4px; line-height: 1.7; }
.fa-wa { margin: 8px 0 0; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; background: var(--ui-bg, #f6f5f1); border: 1px solid var(--ui-line); border-radius: 8px; }
.fa-result { padding: 12px 16px; margin: 0 0 14px; }
.fa-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.fa-sec { padding: 0 0 4px; margin: 0 0 12px; }
.fa-sec .card-h { padding: 12px 16px 8px; }
.fa-dl { margin: 0; padding: 0 16px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.fa-row { padding: 8px 0; border-top: 1px dashed var(--ui-line); min-width: 0; }
.fa-row-wide { grid-column: 1 / -1; }
.fa-row dt { font-size: 12.5px; color: var(--ui-ink-2); margin: 0 0 2px; }
.fa-row dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.fa-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.fa-tablewrap { overflow-x: auto; }
.fa-table { font-size: 13px; }
.fa-files { display: flex; flex-wrap: wrap; gap: 10px; }
.fa-file { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--ui-line); border-radius: 8px; color: inherit; text-decoration: none; max-width: 100%; }
.fa-file img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; }
.fa-ficon { width: 56px; height: 56px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #efeadb; color: #6d6641; font-weight: 700; font-size: 13px; }
.fa-fname { display: flex; flex-direction: column; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.fa-fname small { color: var(--ui-ink-2); }
.fa-dups { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.fa-dup { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--ui-line); border-radius: 8px; cursor: pointer; }

@media (max-width: 600px) {
  .fa-link { flex-direction: column; align-items: stretch; }
  .fa-qr { width: 150px; margin: 0 auto; }
  .fa-top { flex-direction: column; gap: 6px; }
  .fa-dl { grid-template-columns: 1fr; }
}
.fa-sd-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }

/* The second visual review (2026-10-24): a sender's facts each keep together, the dot travelling with the fact it introduces. */
.fa-facts-l .fa-fact { display: inline-block; }
.fa-facts-l .fa-fact + .fa-fact::before { content: '·'; margin: 0 6px; }
body:not(.ui-en) .fa-facts-l .fa-fact + .fa-fact::before { content: '•'; }
@media (max-width: 760px) {
  .fa-sd-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; justify-content: stretch; }
  .fa-sd-acts > .btn { width: 100%; justify-content: center; }
}
@media (max-width: 760px) {
  /* A sender on a phone: the name and its facts (one a line), then the four buttons two by two beneath. */
  #fa-senders table.grid, #fa-senders table.grid tbody, #fa-senders table.grid tr, #fa-senders table.grid td { display: block; width: 100%; }
  #fa-senders table.grid td { border: 0; padding: 4px 12px; }
  #fa-senders table.grid tr { padding: 6px 0 10px; }
  .fa-facts-l .fa-fact { display: block; }
  .fa-facts-l .fa-fact + .fa-fact::before { content: none; }
}
