/* App feedback (FL-DEV-0724). Only what is new: the page and its panel reuse
   the Dev board's controls, list and ticket panel classes. */

/* The New count beside App feedback in the sidebar. */
.nav { position:relative; }
.nav .nav-count { flex:0 0 auto; min-width:20px; padding:1px 7px; background:#f2b84b; color:#0b1417; text-align:center; line-height:1.5; }
.nav .nav-count[hidden] { display:none; }
.nav.active .nav-count { background:#0b1417; color:#fff; }
/* Collapsed to icons, the count becomes a dot on the speech bubble. */
@media(min-width:901px) {
  .side.collapsed .nav .nav-count { position:absolute; top:7px; left:calc(50% + 4px); min-width:0; width:9px; height:9px; padding:0; font-size:0; border:2px solid var(--nav-bg); box-sizing:content-box; }
}

/* The status words: amber for New (waiting on us), blue for Read, green for
   Done, grey for Not doing, the Dev board's own status colours. */
.af-status[data-feedback-status="NEW"] { color:#795408; background:#fff4d7; }
.af-status[data-feedback-status="READ"] { color:#205e7a; background:#e4f3fb; }
.af-status[data-feedback-status="DONE"] { color:#36621a; background:#ebf5df; }
.af-kind { max-width:none; }
.af-kind[data-kind="BROKEN"] { color:#923b31; background:#fdece8; }

/* The page. */
.af-control-row { display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.af-control-row .cb2-filter { flex:0 1 240px; }
.af-control-row .cb2-filter-summary { flex:1 1 200px; padding-top:0; }
.cb2-owner .count { margin-left:2px; padding:0 6px; border-radius:99px; background:#fff4d7; color:#795408; }
.af-failed { margin-bottom:12px; padding:12px 16px; border-color:#f0c9c4; background:#fdf3f2; color:var(--danger); font-size:13px; }
.af-failed p { margin:0; }
.af-list tbody tr { cursor:pointer; }
.af-list tbody tr:hover { background:#fafcfc; }
.af-list tbody tr:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.af-list tbody tr.af-new td:first-child { box-shadow:inset 3px 0 0 #d9a441; }
.af-list tbody tr.af-new .af-cell-from { color:var(--ink); font-weight:700; }
.af-list th,.af-list td { padding-left:10px; padding-right:10px; }
.af-list th:first-child,.af-list td:first-child { padding-left:18px; }
.af-list td { white-space:nowrap; }
.af-list .af-cell-install .cb-mark { display:inline-block; vertical-align:middle; margin-right:6px; }
.af-list .af-cell-install img[hidden] { display:none; }
.af-install-name { vertical-align:middle; }
/* The message takes whatever width is left, on one line. */
.af-list .af-cell-message { width:100%; max-width:0; }
.af-message { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--ink); }
.af-list .af-cell-screen { max-width:140px; overflow:hidden; text-overflow:ellipsis; }
.af-their-turn { display:inline-block; margin-top:2px; padding:1px 6px; border-radius:5px; font-size:11px; font-weight:650; color:var(--amber); background:#fff4d7; white-space:nowrap; }

/* The panel. */
.af-panel .af-part:empty { display:none; }
.af-panel .af-part > .cb-section:first-child { margin-top:18px; }
.af-panel .af-shot a { display:block; max-width:100%; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#f6f9f9; }
.af-panel .af-shot img { display:block; max-width:100%; height:auto; margin:0 auto; }
.af-panel .af-ticket p { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0; }
.af-panel .af-ticket a { font-weight:700; color:var(--deep); }
.af-panel .af-manage .field select { max-width:240px; }
.af-panel .af-manage .cb-form-foot { justify-content:flex-start; }
.af-panel .af-manage .cb-form-foot .primary { margin-left:auto; }
.af-panel .af-manage .cb-chars { display:block; margin-top:4px; }
.af-seen { margin:-4px 0 10px; font-size:12px; color:var(--muted); }
.af-seen small { margin-left:4px; }
.af-notice { margin:0 0 10px; padding:8px 10px; border-radius:8px; background:#fff7df; border:1px solid #f1dfaa; color:#5b4206; font-size:12px; line-height:1.45; }
.af-older { font-size:13px; }
.af-feed-failed .cb-error { margin-bottom:10px; }
.af-panel .bubble .cb-row-actions { margin-top:6px; }
.af-panel .bubble.from-user .cb-row-actions .icon-btn { padding-left:0; margin-left:0; }
.af-mobile-head .cb-mark { width:20px; height:20px; }
.af-mobile-head .cb-panel-install { font-size:12px; font-weight:650; color:var(--ink); }
.af-raise .cb-chars { display:block; margin-top:4px; }

/* The review (FL-DEV-0725). The signals on a row use the Dev board's status
   look, in its own colours: amber for something waiting on us, green for a
   ticket that is done. */
/* Stacked under the status rather than beside it, so the message keeps its width. */
.af-list td.af-cell-status { white-space:normal; }
.af-list .af-cell-status .cb2-status { white-space:nowrap; }
.af-list .af-cell-status .af-signal { display:table; margin:3px 0 0; }
.af-signal { margin-left:4px; }
.af-signal[data-signal="ticket"],.af-signal[data-signal="link"],.af-signal[data-signal="draft"] { color:#795408; background:#fff4d7; }
.af-signal[data-signal="done"] { color:#36621a; background:#ebf5df; }
.af-signal[data-signal="unreviewed"] { color:#4b5b60; background:#eef2f3; }
.af-signal[data-signal="recommendation"] { margin-left:0; color:#205e7a; background:#e4f3fb; }
.af-panel .af-review-when { margin:0 0 6px; font-size:12px; color:var(--muted); }
.af-panel .af-recommendation { margin:0 0 8px; }
.af-panel .af-review-none { margin:0 0 8px; color:var(--muted); }
.af-panel .af-findings { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.5; color:var(--ink); }
.af-panel .af-findings.af-folded { max-height:calc(8 * 1.5em); overflow:hidden; -webkit-mask-image:linear-gradient(#000 70%, transparent); mask-image:linear-gradient(#000 70%, transparent); }
.af-panel .af-show-all { padding-left:0; margin:2px 0 0; }
.af-panel .af-approve,.af-panel .af-link,.af-panel .af-loop { margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.af-panel .af-approve h4 { margin:0 0 8px; font-size:13px; }
.af-panel .af-approve .cb-chars { display:block; margin-top:4px; }
.af-panel .af-draft-row { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.af-panel .af-queue-review { display:flex; align-items:center; gap:6px; margin:4px 0 8px; }
.af-panel .af-approve .cb-form-foot,.af-panel .af-link .cb-form-foot,.af-panel .af-loop .cb-form-foot,.af-panel .af-review-foot { justify-content:flex-start; }
.af-panel .af-review-foot { margin-top:12px; }
.af-panel .af-link-ticket { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0 0 8px; }
.af-panel .af-link-ticket a { font-weight:700; color:var(--deep); }
.af-panel .af-loop p { margin:0 0 8px; }
.af-draft-label { margin-bottom:4px; font-size:11px; font-weight:650; color:var(--amber); }
.af-panel .af-edit textarea { width:100%; box-sizing:border-box; }
.af-panel .af-edit .cb-chars { display:block; margin-top:4px; }
.af-panel .af-edit .cb-form-foot { justify-content:flex-end; gap:8px; margin-top:6px; }

@media(max-width:720px) {
  .af-panel .af-draft-row { grid-template-columns:1fr; gap:0; }
  .af-control-row { gap:10px; }
  .af-control-row .cb2-filter { flex:1 1 100%; }
  /* The same rows as tiles, as the Dev board's list does on a phone. */
  .af-list .af-cell-install { order:1; flex:1 1 auto; }
  .af-list .af-cell-status { order:2; }
  .af-list .af-cell-kind { order:3; }
  .af-list td { white-space:normal; }
  .af-list .af-cell-status .af-signal { display:inline-block; margin:0 0 0 4px; }
  .af-list.table .af-cell-message { order:4; flex:1 1 100%; width:auto; min-width:0; max-width:100%; margin-top:2px; }
  .af-list .af-cell-screen { max-width:100%; }
  .af-message { white-space:normal; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; font-size:14px; line-height:1.4; }
  .af-list.table .af-cell-from { order:5; color:var(--muted); margin-top:4px; }
  .af-list.table .af-cell-screen { order:6; color:var(--muted); margin-top:4px; }
  .af-list.table .af-cell-screen:empty,.af-list.table .af-cell-replies:empty,.af-list.table .af-cell-ticket:empty { display:none; }
  .af-list.table .af-cell-replies { order:7; color:var(--muted); margin-top:4px; }
  .af-list.table .af-cell-ticket { order:8; margin-top:4px; }
  .af-list.table .af-cell-updated { order:9; color:var(--muted); margin-top:4px; }
  .af-list .af-cell-screen::before,.af-list .af-cell-replies::before,.af-list .af-cell-ticket::before,.af-list .af-cell-updated::before { content:'·'; margin-right:6px; }
  .af-list tbody tr.af-new { border-left:3px solid #d9a441; }
  .af-list tbody tr.af-new td:first-child { box-shadow:none; }
  .af-list .cb2-list-title { min-height:0; }
  .af-panel .af-manage .field select { max-width:none; }
  .af-panel .af-shot a { width:100%; }
}
