/* =========================================================
   kolOS — Fehler & Wünsche (reports.js)
   ---------------------------------------------------------
   Ruhig und sachlich: das ist eine Liste, kein Schaufenster.
   Farbe nur da, wo sie etwas bedeutet (Status).
   ========================================================= */

.rep {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f7fbfd;
  color: #123546;
}

/* ---------- Kopf ---------- */
.rep-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(18, 84, 116, .10);
  background: #fff;
}
.rep-tabs { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rep-tabs::-webkit-scrollbar { display: none; }
.rep-tab {
  flex: none;
  padding: 5px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid transparent;
  background: none;
  color: #4d7386;
  cursor: pointer;
  white-space: nowrap;
}
.rep-tab:hover { background: #eef7fb; }
.rep-tab.on { background: #123546; border-color: #123546; color: #fff; }
.rep-new {
  flex: none;
  padding: 6px 13px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid #12809f;
  background: linear-gradient(180deg, #2aa7cf, #12809f);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(18, 128, 159, .3);
}
.rep-new:hover { filter: brightness(1.07); }

/* ---------- Formular ---------- */
.rep-form {
  flex: none;
  padding: 12px;
  background: #eef7fb;
  border-bottom: 1px solid rgba(18, 84, 116, .12);
}
.rep-f-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rep-kind { display: flex; gap: 4px; flex: 1 1 auto; }
.rep-k {
  padding: 4px 10px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid rgba(18, 84, 116, .18);
  background: #fff;
  color: #4d7386;
  cursor: pointer;
}
.rep-k.on { background: #123546; border-color: #123546; color: #fff; }
.rep-x {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(18, 84, 116, .15);
  background: #fff;
  color: #4d7386;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.rep-lab {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #5b8298;
  margin: 8px 0 3px;
}
.rep-title, .rep-text, .rep-name {
  width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #bcd8e6;
  background: #fff;
  color: #123546;
  resize: vertical;
}
.rep-title:focus, .rep-text:focus, .rep-name:focus {
  outline: 2px solid rgba(42, 167, 207, .45);
  border-color: #2aa7cf;
}
.rep-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.rep-name { flex: 1 1 auto; max-width: 200px; }
.rep-count { font-size: 11px; color: #7c9aaa; font-variant-numeric: tabular-nums; }
.rep-send { margin-left: auto; }
.rep-hint { margin: 7px 0 0; font-size: 11px; line-height: 1.45; color: #6b8a9b; }
.rep-hint.warn { color: #b4462a; font-weight: 600; }

/* ---------- Liste ---------- */
.rep-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.rep-item {
  padding: 11px 13px 9px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid rgba(18, 84, 116, .10);
  border-left: 3px solid #c3d6e1;
}
.rep-item.planned { border-left-color: #2aa7cf; }
.rep-item.done { border-left-color: #3fb98a; }
.rep-item.rejected { border-left-color: #d8a0a0; opacity: .72; }

.rep-top { display: flex; align-items: baseline; gap: 7px; }
.rep-badge {
  flex: none;
  padding: 1px 7px 2px;
  border-radius: 99px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: #e8eef2;
  color: #5b7d90;
}
.rep-badge.planned { background: #e0f3fb; color: #12809f; }
.rep-badge.done { background: #e2f6ec; color: #2c8a63; }
.rep-badge.rejected { background: #f7e6e6; color: #a85a5a; }
.rep-top h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #123546;
}
.rep-body {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #40606f;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rep-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 10.5px;
  color: #7c9aaa;
}
.rep-grow { flex: 1 1 auto; }
.rep-vote {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px 3px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid rgba(18, 84, 116, .14);
  background: #fff;
  color: #5b7d90;
  cursor: pointer;
}
.rep-vote:hover { border-color: rgba(18, 84, 116, .3); color: #b4462a; }
.rep-vote .ui-ic { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.rep-vote.done { color: #e05a76; border-color: #f0b8c4; background: #fff5f7; }
.rep-vote.done .ui-ic { fill: currentColor; }
.rep-vote b { font-variant-numeric: tabular-nums; }

/* Antworten von Tim: eingerückt und abgesetzt, damit sie nicht wie
   ein weiterer Bericht aussehen. */
.rep-notes {
  list-style: none;
  margin: 8px 0 0;
  padding: 7px 0 0 10px;
  border-top: 1px dashed rgba(18, 84, 116, .14);
  border-left: 2px solid #cfe6f2;
  display: grid;
  gap: 4px;
}
.rep-notes li {
  font-size: 11.5px;
  line-height: 1.5;
  color: #2f6a86;
}

.rep-empty {
  margin: 24px 12px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7c9aaa;
}

/* ---------- Mobil ---------- */
@media (max-width: 520px) {
  .rep-head { padding: 8px 9px; gap: 6px; }
  .rep-tab { padding: 4px 9px; font-size: 11.5px; }
  .rep-new { padding: 5px 11px; font-size: 12px; }
  .rep-form { padding: 10px 9px; }
  .rep-list { padding: 8px 9px 14px; }
  .rep-name { max-width: none; }
  .rep-row { flex-wrap: wrap; }
  .rep-send { margin-left: 0; flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rep-new:hover { filter: none; }
}
