/* Feature requests (a feature in preview: common/features.py): the page /account/requests (laid out as the licence
   page) and the account page's card, on top of web/account/account.css, whose cards, tags, tables, messages, inputs
   and crumbs they use as they are. */

/* the account page's card: a link to the page and how many were sent */
#fr[hidden] { display: none; }
.fr-lead { margin: 0 0 var(--s4); }
.fr-acts { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.fr-mine { font-size: var(--fs-14); }
.fr-mine[hidden] { display: none; }

/* the page */
.fr-page #view { display: grid; gap: var(--s4); }
.fr-page .head h1 { margin-top: var(--s2); }
.fr-page .lead { margin: calc(-1 * var(--s2)) 0 0; }
.fr-form { display: grid; gap: var(--s3); }
.fr-form .err { margin: 0; }
.fr-form textarea.input { height: auto; min-height: 120px; padding-top: 6px; padding-bottom: 6px; resize: vertical; font: inherit; }

/* the requests: a row opens to the full text and our reply */
.fr-t-list th:nth-child(2) { text-align: right; }
.fr-t-list th:nth-child(2), .fr-t-list td:nth-child(2), .fr-t-list th:nth-child(3), .fr-t-list td:nth-child(3) { width: 1%; }
.fr-row { cursor: pointer; }
.fr-row:hover td, .fr-row.on td { background: var(--bg-2); }
.fr-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.fr-t-list td.fr-t { white-space: normal; overflow-wrap: anywhere; color: var(--text); padding-left: 20px; text-indent: -20px; }
.fr-t .i { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; color: var(--muted); transition: transform 150ms; }
.fr-row.on .fr-t .i { transform: rotate(90deg); }
.fr-more td { white-space: normal; padding: var(--s2) 0 var(--s4) 20px; }
.fr-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.fr-reply { margin-top: var(--s3); border-left: 2px solid var(--blue); padding-left: var(--s3); }
.fr-reply b { font-size: var(--fs-13); font-weight: 600; color: var(--text); }
.fr-reply p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }

@media (max-width: 640px) {
  .fr-t-list th:nth-child(2), .fr-t-list td:nth-child(2) { display: none; }
}
