/* reporting3-Ersatz (Statistik, Benutzerkonten, Lernstatus) - Farben wie die Originaltabellen (#005c97), mobile first */
.k21-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k21-rep-leer { color: #555; font-style: italic; }
.k21-rep-verweigert { margin: 1em 0; }
.k21-rep-meldung { padding: .5em .8em; border-radius: 3px; }
.k21-rep-meldung.ok { background: #e6f4e6; border: 1px solid #7cb87c; }
.k21-rep-meldung.nein { background: #fbeaea; border: 1px solid #d08080; }
.k21-rep-rollbar { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Statistik: databox / yearTable */
.k21-rep-box { border: 1px solid #c8c8c8; margin: .4em 0 1em; padding: .5em .8em; min-width: 0; }
.k21-rep-werte { display: flex; flex-wrap: wrap; gap: .6em 1.6em; align-items: center; }
.k21-rep-wert { display: flex; flex-direction: column; min-width: 8em; flex: 1 1 10em; }
.k21-rep-wert span { font-size: 1.15em; }
.k21-rep-bild img, .k21-rep-kopf img { height: 35px; width: auto; vertical-align: middle; }
.k21-rep-kopf { margin-bottom: .3em; font-weight: bold; }
.k21-rep-jahre { border-collapse: collapse; font-size: 12px; width: 100%; }
.k21-rep-jahre th, .k21-rep-jahre td { text-align: right; padding: 2px 5px; border-bottom: 1px solid #e3e3e4; white-space: nowrap; }
.k21-rep-jahre thead th { background: #005c97; color: #fff; }
.k21-rep-jahre th[scope=row] { text-align: left; }
.k21-rep-jahre td:last-child { font-weight: bold; }
.k21-rep-diagramm { margin: .5em 0 1.2em; max-width: 100%; overflow-x: auto; }
.k21-rep-diagramm svg { max-width: 100%; height: auto; }

/* Benutzerkonten / Lernstatus - Seite mit Kontenliste in voller Breite (Theme bm_theme: .k-seite/.k-inhalt) */
.k-seite:has(.k21-rep-konten), .k-inhalt:has(.k21-rep-konten) { max-width: none; }
.k-body .k21-rep-tabelle img, .k21-rep-tabelle img { max-width: none; vertical-align: middle; }
.k21-rep-tabelle td.datum, .k21-rep-tabelle td.tel { white-space: nowrap; }
.k21-rep-konten .k21-rep-tabelle td.umbruch { min-width: 9em; }
.k21-rep-suche { display: flex; flex-wrap: wrap; gap: .5em 1em; align-items: center; margin: .6em 0; }
.k21-rep-suche input { padding: 4px 6px; min-width: 14em; max-width: 100%; }
.k21-rep-tabelle { border-collapse: collapse; font-size: 12px; font-family: Arial, Helvetica, sans-serif; width: 100%; }
.k21-rep-tabelle th, .k21-rep-tabelle td { padding: 4px 5px; border-bottom: 1px solid #e3e3e4; text-align: left; vertical-align: middle; }
.k21-rep-tabelle thead tr:first-child th { background: #005c97; color: #fff; white-space: nowrap; }
.k21-rep-tabelle th[data-sortiere] { cursor: pointer; }
.k21-rep-tabelle th[aria-sort=ascending]::after { content: " \25B2"; font-size: .8em; }
.k21-rep-tabelle th[aria-sort=descending]::after { content: " \25BC"; font-size: .8em; }
.k21-rep-tabelle .spaltenfilter td { background: #005c97; padding: 0 3px 4px; border: 0; }
.k21-rep-tabelle .spaltenfilter input { width: 100%; min-width: 4em; box-sizing: border-box; border: 0; padding: 2px 4px; font-size: 11px; }
.k21-rep-tabelle .zahl { text-align: right; }
.k21-rep-tabelle td.fnb { color: #c00; font-weight: bold; }
.k21-rep-tabelle .umbruch { word-break: break-word; }
.k21-rep-tabelle small { color: #888; }
.k21-rep-tabelle tr.archiviert td { color: #888; background: #f6f6f6; }
.k21-rep-tabelle tr.markiert td { background: #fff6d5; }
.k21-rep-tabelle .aktionen { white-space: nowrap; }
.k21-rep-tabelle .aktionen img { margin-right: 3px; }
.k21-rep-aus img { opacity: .35; }
.k21-rep-tabelle form { margin: 0; }
.k21-rep-tabelle button { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; cursor: pointer; }
/* Lernstatus: Kursbild mit Status (renderState) und Zertifikat-Link in "Bestanden" */
.k21-rep-tabelle td.k21-rep-kursbild { padding: 4px 4px 2px 6px; white-space: nowrap; }
.k21-rep-tabelle td.k21-rep-kursbild .k21-kurs__bildrahmen { display: inline-block; vertical-align: middle; }
.k21-rep-kursbild__status { display: inline-block; vertical-align: middle; margin-right: 4px; line-height: 0; }
/* Empfehlung oben rechts am Kursbild: Formular/Symbol an der Stelle von .k21-kurs__empfehlung (kurse.css) */
form.k21-kurs__empfehlung { margin: 0; line-height: 0; }
form.k21-kurs__empfehlung button { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; line-height: 0; }
form.k21-kurs__empfehlung img, span.k21-kurs__empfehlung img { display: block; width: 15px; height: 15px; }
form.k21-rep-empfehlen--neu img { opacity: .3; filter: grayscale(1); }
form.k21-rep-empfehlen--neu button:hover img, form.k21-rep-empfehlen--neu button:focus-visible img { opacity: 1; filter: none; }
form.k21-kurs__empfehlung button:focus-visible { outline: 2px solid #2b5f9e; outline-offset: 1px; }
.k21-rep-tabelle a.k21-rep-zert { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
/* Zertifikatspruefung zuruecksetzen: schmal, Text zweizeilig "Zurueck-/setzen" */
.k21-rep-tabelle button.k21-rep-zurueck { gap: 3px; padding: 1px 5px 1px 3px; font-size: 10px; line-height: 1.1; text-align: left; white-space: nowrap; }
.k21-rep-tabelle button.k21-rep-zurueck img { width: 18px; height: 18px; }
.k21-rep-daten { display: grid; grid-template-columns: max-content 1fr; gap: 2px 1em; margin: .5em 0 1em; }
.k21-rep-daten dt { color: #555; }
.k21-rep-daten dd { margin: 0; word-break: break-word; }
.k21-rep-hinweis { font-size: .9em; color: #555; }
/* Meine Daten */
.k21-rep-formular fieldset { border: 1px solid #c8c8c8; margin: 0 0 1em; padding: .5em .8em; min-width: 0; }
.k21-rep-formular legend { font-weight: bold; }
.k21-rep-formular p { margin: .4em 0; }
.k21-rep-formular label { display: block; font-size: .9em; color: #333; }
.k21-rep-formular input, .k21-rep-formular select { width: 100%; max-width: 24em; box-sizing: border-box; padding: 4px 6px; font: inherit; }
.k21-rep-formular button { padding: 6px 18px; font: inherit; cursor: pointer; background: #005c97; color: #fff; border: 0; border-radius: 3px; }
.k21-rep-meldung ul { margin: .3em 0 0 1.2em; padding: 0; }
.k21-rep-meldung:not(.ok):not(.nein) { background: #f2f2f2; border: 1px solid #ccc; }
.k21-rep-hinweis img { vertical-align: middle; }

/* Markt bearbeiten / loeschen */
.k21-rep-formular button.k21-rep-gefahr { background: #b00; border-color: #b00; color: #fff; }
.k21-rep-formular input:disabled, .k21-rep-formular select:disabled { background: #f2f2f2; color: #555; }
.k21-rep-neu { margin: .5em 0 1em; text-align: right; }
a.k21-rep-knopf { display: inline-block; padding: .45em 1em; background: #005c97; color: #fff; text-decoration: none; border-radius: 3px; }
a.k21-rep-knopf:hover, a.k21-rep-knopf:focus { background: #00436e; }

/* Mein Verlauf (rep_user_chron) */
.k21-rep-filter { display: flex; flex-wrap: wrap; gap: .4em 1.2em; border: 1px solid #96aaff; padding: .4em .8em; margin: .8em 0; }
.k21-rep-filter legend { padding: 0 .3em; }
.k21-rep-typ { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; cursor: pointer; }
.k21-rep-konten:has(.k21-rep-filter) .k21-rep-tabelle th:last-child,
.k21-rep-konten:has(.k21-rep-filter) .k21-rep-tabelle td:last-child { width: 10.5em; min-width: 10.5em; white-space: nowrap; padding-right: 1em; }

/* Benutzer-Detailseiten: Kopf + Reiter Lernstatus / Lernverlauf / Bearbeiten (Master BenutzerDetailseite Reiter) */
.k21-rep-konto-kopf { display: flex; align-items: center; gap: .6em; margin: .4em 0 .6em; }
.k21-rep-konto-kopf p { margin: 0; }
.k21-rep-reiter ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 1em; padding: 0; border-bottom: 2px solid #005c97; }
.k21-rep-reiter li { margin: 0; }
.k21-reiter { display: flex; align-items: center; gap: .4em; padding: .3em .9em .3em .5em; border: 1px solid #b9c7d6; border-bottom: none; border-radius: 4px 4px 0 0; background: #eef3f8; color: #153b63; text-decoration: none; position: relative; }
a.k21-reiter:hover, a.k21-reiter:focus { background: #dfe9f3; }
.k21-reiter.aktiv { background: #005c97; border-color: #005c97; color: #fff; font-weight: bold; }
.k21-reiter.gesperrt { color: #888; background: #f4f4f4; cursor: not-allowed; }
.k21-reiter.gesperrt img:first-child { opacity: .45; }
@media (max-width: 600px) { .k21-reiter span { font-size: .9em; } .k21-reiter img { width: 24px; height: 24px; } }
.k21-rep-aktionen img { vertical-align: middle; }
/* Maerkte-Kaestchen im Formular "Bearbeiten" */
.k21-rep-formular .k21-rep-typ { display: inline-flex; font-size: 1em; }
.k21-rep-formular input[type=checkbox] { width: auto; max-width: none; padding: 0; margin: 0 .2em 0 0; }

/* Kontoaktionen als Symbol-Knopf (Archivieren / Freigeben) */
form.k21-rep-aktion { display: inline; margin: 0; }
form.k21-rep-aktion button { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; line-height: 0; vertical-align: middle; }
form.k21-rep-aktion button:focus-visible { outline: 2px solid #2b5f9e; outline-offset: 1px; }
.k21-rep-aktionen a, .k21-rep-aktionen form.k21-rep-aktion { margin-right: 6px; }
button.k21-rep-gefahr { background: #b3261e; border-color: #b3261e; color: #fff; }
div.k21-rep-aktionen { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 1em 0; }

/* Rollen zuweisen (Admin: alle Rollen nach Gruppen) */
.k21-rep-rollen .k21-rep-rollengruppe { margin: 0 0 10px; }
.k21-rep-rollen .k21-rep-rollengruppe > strong { display: block; font-size: 14px; margin-bottom: 2px; color: #555; }
.k21-rep-rollen .k21-rep-rollengruppe > div { display: flex; flex-wrap: wrap; gap: 2px 14px; }

/* Kurs bearbeiten: Microtrainings des Kurses (el_kurs.bestandteile) */
.k21-kb-ids { font-family: Consolas, monospace; max-width: 16em; }
.k21-kb-idtitel { margin: .3em 0 0 1.4em; padding: 0; font-size: 13px; color: #555; }

/* Lernkonto anfordern (seit 2026-11-17): beantragte Konten, Probekonten */
.k21-rep-beantragt { display: inline-block; font-size: 11px; font-weight: bold; color: #8a5a00; background: #fff3cd;
  border: 1px solid #e6c36a; border-radius: 4px; padding: 0 4px; margin-right: 4px; vertical-align: middle; }
.k21-rep-textknopf { font: inherit; font-size: 11px; padding: 1px 6px; border: 1px solid #b9b2a6; border-radius: 4px;
  background: #fff; cursor: pointer; white-space: nowrap; }
.k21-rep-textknopf:hover { background: #f3f0ea; }

/* Passbild (seit 2026-11-17) */
img.k21-passbild { object-fit: cover; border-radius: 50%; vertical-align: middle; background: #ece7df; }
.k21-rep-passbild { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px;
  border: 1px solid #e6dfd2; border-radius: 8px; }
.k21-rep-passbild img.k21-passbild { border-radius: 8px; flex: none; }
.k21-rep-passbild input[type=file] { max-width: 100%; font: inherit; font-size: 13px; margin: 4px 0; }
.k21-rep-passbild .k21-rep-hinweis { margin: 2px 0 4px; }
img.k21-passbild--leer { object-fit: contain; padding: 12px; box-sizing: border-box; background: #f6f6f6; border: 1px solid #e6dfd2; }
