/* Reusable pieces: buttons, cards, chips, badges, lists, fields, notes, sheets, toasts,
   loading skeletons, and empty states. */

/* Buttons. Every button is at least 44px tall, so it is easy to tap. */
.btn, .btn-quiet, .btn-danger, .btn-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 0 var(--s4); border-radius: var(--r-md);
  border: 1px solid transparent; font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn { background: var(--accent); color: var(--accent-ink); }
.btn:hover { background: var(--accent-strong); }
.btn-quiet { background: var(--raised); border-color: var(--line-strong); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink-soft); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.btn[hidden], .btn-quiet[hidden] { display: none !important; }
.btn-danger:hover { border-color: var(--danger); }
.btn-icon { width: var(--tap); padding: 0; background: transparent; color: var(--ink-soft); }
.btn-icon:hover { background: var(--paper); }
.btn svg, .btn-quiet svg, .btn-danger svg { width: 18px; height: 18px; }
.btn-block { display: flex; width: 100%; }
.btn-small { min-height: 36px; padding: 0 var(--s3); font-size: var(--text-sm); border-radius: var(--r-sm); }
.admin-filter-clear { min-height: var(--tap); }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font: inherit; }
.row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.row-end { justify-content: flex-end; }
.row-center { justify-content: center; }
.stack > * + * { margin-top: var(--s3); }
.grow { flex: 1; min-width: 0; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4); box-shadow: var(--shadow); margin-bottom: var(--s3);
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-bottom: var(--s2); }
.card-head h2 { margin: 0; }
.card-flush { padding: 0; overflow: hidden; }
.people-table.card-flush { overflow: visible; }

/* Chips and segmented choices */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); overflow: visible; padding: 2px 2px var(--s2); }
@media (min-width: 720px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink);
  border-radius: var(--r-pill); padding: 0 14px; min-height: var(--tap); font-size: var(--text-sm); font-weight: 600;
}
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip svg { width: 16px; height: 16px; }
.segmented { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px; gap: 3px; }
.segmented button { border: 0; background: transparent; border-radius: 11px; min-height: var(--tap); padding: 0 var(--s3); font-weight: 600; color: var(--muted); }
.segmented button.on { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* Small text pieces */
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.tiny { font-size: var(--text-xs); }
.num { font-variant-numeric: tabular-nums; }
.warn-text { color: var(--warn); }
.error-text, .error { color: var(--danger); }
.error:empty { display: none; }
.badge {
  display: inline; font-size: var(--text-xs); font-weight: 650; letter-spacing: 0.04em;
  padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted);
  vertical-align: baseline; text-transform: uppercase;
}
.badge.unsaved-badge,
.badge.declined-badge,
.badge.good-badge,
.badge.missing-badge {
  display: inline-flex; align-items: center; font-size: 0.7rem; letter-spacing: 0.02em;
  padding: 1px 8px; border-radius: var(--r-pill); border: 1px solid var(--line);
  vertical-align: 1px;
}
.badge.unsaved-badge,
.badge.good-badge { border-color: transparent; }
.badge.declined-badge { background: var(--paper); }
.badge.missing-badge {
  background: var(--warn-bg); color: var(--warn); border-color: var(--line);
  cursor: pointer; white-space: nowrap; min-height: var(--tap); padding: 1px 10px;
}
.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 650;
  padding: 3px 10px; border-radius: var(--r-pill); background: var(--info-bg); color: var(--ink-soft); white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.status.processing { background: var(--chip-bg, #eef1f4); color: var(--muted, #5c6670); }
.status.warn { background: var(--warn-bg); color: var(--warn); }
.status.good { background: var(--good-bg); color: var(--good); }
.status.bad { background: var(--danger-bg); color: var(--danger); }
.stat { font-size: 2rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
/* A one-time code to type into another program, for example when pairing a reader. */
.pair-code {
  display: block; margin: var(--s3) 0; padding: var(--s3); text-align: center; user-select: all;
  font: 750 2rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.12em;
  background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--r-md);
}
.delta { font-size: var(--text-sm); font-weight: 650; }
.delta.up { color: var(--danger); }
.delta.down { color: var(--good); }

/* Notes and messages */
.note {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: var(--info-bg); border-radius: var(--r-md); padding: var(--s3) var(--s4); margin: 0 0 var(--s3);
}
.note > svg { width: 20px; height: 20px; margin-top: 1px; color: var(--muted); }
.note p { margin: 0; }
.note p + p, .note p + .row { margin-top: var(--s2); }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.warn > svg { color: var(--warn); }

/* Lists */
.list-item {
  display: flex; justify-content: space-between; gap: var(--s3); align-items: center;
  padding: var(--s3) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.list-item:last-child { border-bottom: 0; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu a, .menu button {
  display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 52px; padding: 0 var(--s4);
  background: none; border: 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: left; font-weight: 600;
}
.menu li:last-child a, .menu li:last-child button { border-bottom: 0; }
.menu svg { width: 20px; height: 20px; color: var(--muted); }
.menu .chev { margin-left: auto; display: flex; }
.menu .chev svg { width: 18px; height: 18px; }
.menu a:hover, .menu button:hover { background: var(--paper); }
.menu-title { margin: var(--s4) var(--s1) var(--s2); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list > li { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.plain-list > li:last-child { border-bottom: 0; }

/* Form fields laid out as a grid */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 var(--s3); }
.field-wide { grid-column: 1 / -1; }
.field label { margin-top: var(--s3); }
.field-note { font-size: var(--text-xs); min-height: 1.1em; margin-top: 4px; }
.field-hint { margin: 4px 0 0; }
.date-options,
.field-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.field.has-issue input { border-color: var(--warn); background: var(--warn-bg); }
.field.has-error input { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: var(--s2); font-weight: 500; }
.check input { width: 20px; min-height: 20px; }

/* Bottom sheet on phones, side panel on desktop */
.sheet-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); animation: fade-in 0.15s ease-out; }
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; overflow: auto;
  background: var(--card); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lift);
  padding: var(--s2) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom));
  animation: sheet-up 0.2s ease-out;
}
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto var(--s3); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.sheet-head h2 { margin: 0; font-size: 1.15rem; }
.sheet-actions { margin-top: var(--s5); }
/* The wide sheet keeps its header still and scrolls only its body, so the content can fill the
   space left (the photo in "Fix on photo" grows or shrinks with the buttons around it). */
.sheet.sheet-wide { display: flex; flex-direction: column; height: 94vh; height: 94dvh; max-height: 94vh; max-height: 94dvh; overflow: hidden; }
.sheet.sheet-wide .sheet-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
@media (max-width: 420px) { .hide-small { display: none; } }
@media (min-width: 900px) {
  .sheet {
    left: auto; top: 0; width: min(440px, 100vw); max-height: none; height: 100vh;
    border-radius: var(--r-lg) 0 0 var(--r-lg); padding: var(--s5); animation: panel-in 0.2s ease-out;
  }
  .sheet.sheet-wide { width: min(1180px, 96vw); height: 100vh; max-height: none; }
  .sheet-grip { display: none; }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Toasts: short messages that fade away, with an optional action such as Undo. */
.toasts {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--s4) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--s2); width: min(440px, calc(100vw - 2 * var(--s4)));
  pointer-events: none;
}
@media (min-width: 900px) { .toasts { bottom: var(--s5); } }
/* Sit above the sticky Save bar when it is open (S5). */
body:has(.bill-save-bar:not([hidden])) .toasts {
  bottom: calc(var(--nav-h) + 72px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) {
  body:has(.bill-save-bar:not([hidden])) .toasts { bottom: calc(72px + var(--s5)); }
}
body.crop-screen-open .toasts {
  bottom: calc(120px + env(safe-area-inset-bottom, 0));
}
@media (min-width: 900px) {
  body.crop-screen-open .toasts { bottom: calc(108px + env(safe-area-inset-bottom, 0)); }
}
.toast {
  pointer-events: auto; display: flex; flex-direction: column; align-items: stretch; gap: var(--s2);
  background: var(--ink); color: var(--paper); border-radius: var(--r-md); padding: var(--s3) var(--s4);
  box-shadow: var(--shadow-lift); animation: sheet-up 0.2s ease-out; font-weight: 550;
}
.toast.bad { background: var(--danger); color: #fff; }
.toast-text { flex: 1; min-width: 0; }
.toast-actions { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: var(--s2); }
.toast button { background: none; border: 0; color: inherit; font-weight: 750; text-decoration: underline; min-height: var(--tap, 44px); padding: 0 var(--s2); white-space: nowrap; }
body:has(.app.no-nav) .toasts {
  bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0));
}
@media (max-width: 360px) {
  .toasts {
    width: calc(100vw - 2 * var(--s3));
    bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
  body:has(.app.no-nav) .toasts {
    bottom: calc(var(--s6) + env(safe-area-inset-bottom, 0));
  }
  .toast { padding: var(--s2) var(--s3); font-size: var(--text-sm); }
  .toast button { min-height: var(--tap, 44px); padding: 0 var(--s1); font-size: var(--text-sm); }
}
.report-problem-link { min-height: var(--tap, 44px); }

/* Loading skeletons and empty states */
.skeleton { display: block; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--line) 25%, var(--paper) 50%, var(--line) 75%); background-size: 400% 100%; animation: shimmer 1.3s infinite linear; }
.skeleton.line { height: 14px; margin: 10px 0; }
.skeleton.title { height: 28px; width: 45%; margin-bottom: var(--s4); }
.skeleton.block { height: 120px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.empty { text-align: center; padding: var(--s6) var(--s4); color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: var(--line-strong); margin-bottom: var(--s2); }
.empty h2 { color: var(--ink); }
.empty p { max-width: 34ch; margin: 0 auto var(--s4); }

/* Bill rows, grouped by month (core/bill-list.js). Used by Bills and Home. */
.month { margin-bottom: var(--s4); }
.month-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2);
  padding: 0 var(--s1) var(--s2); font-weight: 700; font-size: var(--text-sm); color: var(--ink-soft);
}
.bill-row {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 72px;
}
.bill-row:last-child { border-bottom: 0; }
.bill-row:hover { background: var(--paper); }
.bill-row.on { background: var(--accent-soft); }
.bill-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bill-row-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-row-sub { font-size: var(--text-sm); color: var(--muted); display: flex; gap: 0 6px; align-items: center; flex-wrap: wrap; }
.bill-row-sub span { white-space: nowrap; }
.bill-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bill-row-total { font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: var(--s2); min-height: var(--tap); padding: 0 4px; }
.processing-back { min-height: var(--tap); padding: 0 4px; }
.processing-filters .chips,
.people-filters .chips { margin-top: var(--s2); }
.processing-tools { display: flex; flex-direction: column; gap: var(--s2); }
.processing-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.processing-search,
.people-search {
  display: flex; align-items: center; gap: var(--s2); min-height: var(--tap);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--raised); padding: 0 var(--s3);
}
.processing-search svg,
.people-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.processing-search input,
.people-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; min-height: var(--tap); font: inherit;
}
.processing-account-token.filter-tag,
.processing-active-filters .filter-tag {
  min-height: var(--tap); padding: 0 var(--s3); border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--raised); font-weight: 600;
}
.processing-reader-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.processing-reader-label { font-weight: 600; min-height: var(--tap); display: inline-flex; align-items: center; }
.chips-divider {
  align-self: center; width: 1px; height: 28px; background: var(--line-strong); margin: 0 var(--s1); flex-shrink: 0;
}
.chips-keep { display: inline-flex; align-items: center; flex: 0 0 auto; }
.empty-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s3) 0; }
.people-empty { padding: var(--s4); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.people-table .people-head,
.people-table .people-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem max-content;
  gap: var(--s2);
  align-items: center;
  padding: var(--s3) var(--s4);
}
.people-table .people-head { padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.people-table .people-row { border-bottom: 1px solid var(--line); }
.people-table .people-row:last-child { border-bottom: 0; }
.people-col-bills { text-align: right; }
.people-col-actions { justify-content: flex-end; }
@media (max-width: 480px) {
  .people-table .people-head .people-col-actions { display: none; }
  .people-table .people-row { grid-template-columns: minmax(0, 1fr) 3rem; }
  .people-col-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.processing-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: var(--tap); padding: 10px 0; color: inherit; text-decoration: none; }
.processing-row:hover { background: var(--paper); }
.processing-row-bill-block {
  display: block;
  text-decoration: none;
  color: inherit;
  min-height: var(--tap);
  padding: var(--s1) 0;
}
.processing-row-bill-block:hover strong { text-decoration: underline; }
.processing-account-note .processing-show-all {
  margin-left: var(--s2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 var(--s2);
}
.search-field-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  margin-inline-end: var(--s2);
}
.processing-search.search,
.people-search.search {
  flex-wrap: wrap;
  align-items: center;
}
.processing-list li { border-bottom: 1px solid var(--line); }
.processing-list li:last-child { border-bottom: none; }
.back-link svg { width: 18px; height: 18px; }
.wrap-anywhere { overflow-wrap: anywhere; }

.feedback-meta-list > li {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s1);
  padding: var(--s1) 0;
  border-bottom: 0;
}
.feedback-meta-list > li.feedback-from {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.feedback-sent-list > li {
  flex-direction: column;
  align-items: stretch;
  gap: var(--s2);
}
.feedback-sent-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}
.feedback-sent-item {
  min-width: 0;
}
.menu-hint {
  margin-left: auto;
  margin-right: var(--s2);
  min-width: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.feedback-admin-shell .feedback-list-panel {
  min-width: 0;
  max-width: 100%;
}
.feedback-admin-shell .ops-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.feedback-admin-shell .feedback-admin-table {
  table-layout: fixed;
  width: 100%;
}
.feedback-admin-shell .feedback-admin-table td {
  height: var(--tap);
  box-sizing: border-box;
  padding: var(--s2) var(--s3);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feedback-admin-shell .feedback-admin-table .fb-member-cell {
  max-width: 14em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feedback-admin-shell .feedback-detail-meta > li {
  display: block;
  padding: var(--s1) 0;
  border: 0;
}
.feedback-member-email {
  margin: 0 0 var(--s2);
  overflow-wrap: anywhere;
}
.feedback-admin-table tr.on td {
  background: var(--paper);
}
.feedback-admin-table tr[data-id] {
  cursor: pointer;
}
.plain-list.flush > li { padding-left: 0; padding-right: 0; }

/* Download sheet and other compact checkbox lists: global inputs are full-width (base.css). */
.check-row {
  display: flex; align-items: center; gap: var(--s2);
  margin: 0; font-weight: 500; color: var(--ink);
}
.check-row input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; min-height: 0; flex-shrink: 0;
  margin: 0; padding: 0; accent-color: var(--accent);
}
.section-head { display: flex; justify-content: space-between; align-items: center; margin: var(--s4) var(--s1) var(--s2); }
.section-head h2 { margin: 0; }
.section-head a.small {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 8px;
  box-sizing: border-box;
}
.center { text-align: center; }

/* The photo of a bill */
.photo { display: block; width: 100%; border-radius: var(--r-md); background: var(--paper); }
.thumb {
  width: 48px; height: 56px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0;
  background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted);
}
.thumb svg { width: 22px; height: 22px; }

/* The personal, business, or both question (core/usage.js). */
.usage-choice { border: 0; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.usage-choice legend { padding: 0; margin-bottom: var(--s2); font-weight: 600; }
.usage-hints { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; gap: 2px; }

/* Approved 100% diff D: toast Undo tap target. Rollback: delete this block. */
.toast button {
  min-height: var(--tap); min-width: var(--tap); padding: 6px 12px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Approved 100% diff C: line editor action row wrap (#line-form on the bill screen). Rollback: delete. */
#line-form .row {
  flex-wrap: wrap;
}
#line-form .row > .btn, #line-form .row > .btn-quiet, #line-form .row > .btn-danger {
  white-space: normal; max-width: 100%; text-align: center;
}
#line-form .btn-quiet span { overflow-wrap: normal; word-break: normal; }

/* Pane list bill rows at large text (container on pane-list, not .month). Rollback: delete. */
.pane-list { container-type: inline-size; }
@container (width < 12em) {
  .pane-list .month-head { flex-wrap: wrap; }
  .pane-list .bill-row { flex-wrap: wrap; }
  .pane-list .bill-row-main { flex: 1 1 5em; }
  .pane-list .bill-row-end { margin-left: auto; }
}

/* Failed screen: raw error under Details (F41). */
.error-details { margin: var(--s3) auto; max-width: 28rem; text-align: left; }
.error-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }

/* Admin user page links (U2). Rollback: delete this block. */
.admin-user-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.processing-row-split .admin-user-link,
.processing-row-split .admin-user-bill-link {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.feedback-admin-table th {
  text-align: left;
}

.feedback-admin-table .fb-member-cell {
  max-width: 12rem;
  width: 12rem;
}

.feedback-admin-table tbody tr.fb-list-row {
  cursor: pointer;
}

.feedback-admin-table .fb-open-item {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: var(--tap);
  padding: var(--s2) var(--s2);
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedback-admin-table .fb-member-stack {
  display: none;
}

.feedback-admin-table .fb-member-cell .fb-member-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  padding: 11px 4px;
  margin: -11px -4px;
  min-height: var(--tap);
  box-sizing: border-box;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .feedback-admin-table thead th:nth-child(3),
  .feedback-admin-table .fb-member-cell {
    display: none;
  }
  .feedback-admin-table .fb-open-item {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .feedback-admin-table .fb-member-stack {
    display: block;
    margin-top: var(--s1);
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 100%;
  }
  .feedback-admin-table .fb-member-stack.fb-member-link {
    padding: var(--s2) 0;
    margin: 0;
    min-height: var(--tap);
    display: inline-block;
    width: fit-content;
    max-width: 100%;
  }
}
