/* COmpanion – 04 Feedbacks (ergänzt app.css) */
.fb-code { font-size: 13px; letter-spacing: .04em; font-weight: 700; color: var(--ink); white-space: nowrap; }
.fb-sub-line { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.fb-show-sm, .fb-sm-suffix { display: none; }
.section-title .icon { align-self: center; }
.fb-actions-start { justify-content: flex-start; }

/* Richtung (Modal-Kopf) */
.fb-dir { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--dark); }
.fb-dir--bu { color: var(--info); }
.modal__body .fb-dir { margin-bottom: 8px; }

/* Formular */
.fb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 16px; }
.fb-facts > div { background: var(--stage-2); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.fb-facts .label { color: var(--muted); font-weight: 600; font-size: 12px; }
.fb-step { display: flex; align-items: center; gap: 10px; margin: 30px 0 4px; font-size: 17px; }
.fb-step__no { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fb-step + .help { margin: 0 0 14px 36px; }
.fb-cat { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.fb-cat:first-child { border-top: 0; padding-top: 0; }
.fb-cat__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.fb-cat__comment { min-height: 54px; font-size: 14px; padding: 8px 10px; }
.fb-cat__comment.is-required { border-color: var(--ink); }
.fb-cat__comment.is-required::placeholder { color: var(--red); }
.fb-suggest { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: var(--stage); padding: 10px 14px; font-size: 14px; margin-bottom: 10px; min-height: 44px; }
.scaleinput label.is-suggested { box-shadow: inset 0 -3px 0 var(--red); }
.fb-actions-left { margin-right: auto; }
.fb-text { margin-top: 16px; }
.fb-text p { margin: 4px 0 0; white-space: pre-line; }
.fb-comment { white-space: pre-line; min-width: 180px; }
.fb-readonly td { vertical-align: top; }
@media (min-width: 900px) {
  .modal--wide .fb-cat__row { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; }
  .modal--wide .fb-cat__comment { height: 100%; resize: none; }
}

/* Aufklappbare Details: verschachtelte Tabelle (Einzeleinträge, Team, Feedbackstand) */
.table .fb-sub { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 4px 0 6px; }
.table .fb-sub th, .table .fb-sub th:first-child, .table .fb-sub th:last-child {
  padding: 6px 10px 6px 0; font-size: 10.5px; border-bottom: 1px solid var(--line); color: var(--muted); background: none; }
.table .fb-sub td, .table .fb-sub td:first-child, .table .fb-sub td:last-child {
  padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); background: none; vertical-align: top; }
.table .fb-sub tr:last-child td { border-bottom: 0; }
.table tbody .fb-sub tr:hover td { background: none; }
.table .fb-sub .scale { min-width: 46px; font-size: 12.5px; padding: 2px 6px; }
.fb-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.fb-detail .label { margin-bottom: 2px; }
.fb-detail-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Erhalten / Bottom-up */
.fb-personhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.fb-back .icon { transform: rotate(180deg); }
.fb-back:hover .icon { transform: rotate(180deg) translateX(3px); }
.fb-meter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.fb-meter .anon-meter span { width: 30px; height: 10px; }
.fb-rules { margin: 0; padding-left: 18px; font-size: 14px; }
.fb-rules li + li { margin-top: 8px; }
details.expand > summary .icon { flex: none; }
.fb-quotes { list-style: none; margin: 4px 0 6px; padding: 0; }
.fb-quotes li { border-left: 3px solid var(--ink); background: var(--surface-strong); padding: 8px 12px; font-size: 14px; }
.fb-quotes li + li { margin-top: 6px; }

/* Team / Kopf */
.fb-clickrow { cursor: pointer; }
.fb-year { display: flex; align-items: center; gap: 10px; }
.fb-year select { width: auto; min-width: 100px; }

@media (max-width: 640px) {
  .fb-facts { grid-template-columns: minmax(0, 1fr); }
  .fb-step + .help { margin-left: 0; }
  .form-actions .fb-actions-left { width: 100%; order: 3; margin-right: 0; }
  .fb-hide-sm { display: none; }
  .fb-show-sm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; }
  .fb-sm-suffix { display: inline; }
  .fb-detail { grid-template-columns: minmax(0, 1fr); }
  .fb-comment { min-width: 0; }
  /* Einzeleinträge als kompakte Blöcke statt breiter Tabelle */
  .table .fb-sub thead { display: none; }
  .table .fb-sub tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
  .table .fb-sub tr:last-child { border-bottom: 0; }
  .table .fb-sub td, .table .fb-sub td:first-child, .table .fb-sub td:last-child { padding: 0; border: 0; }
  .table .fb-sub td.fb-sub__wide { flex-basis: 100%; }
}
