/*
 * Stylesheet der Mieterverwaltung.
 *
 * Uebernommen aus login.php der alten Verwaltung. Die Seite ist bewusst
 * schlicht gehalten und benutzt weder Bootstrap noch das Stylesheet der
 * oeffentlichen Website.
 */

body,
td,
th {
  font-size: 11px;
  color: #333;
  font-family: Verdana, Geneva, sans-serif;
  text-align: start;
  vertical-align: top;
}

.firmaue {
  color: #324d78;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: bold;
  line-height: 1.4;
  padding-top: 3px;
  padding-bottom: 3px;
  margin-top: 3px;
}

.firmaue2 {
  color: #666666;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: bold;
  line-height: 1.4;
  padding-top: 3px;
  padding-bottom: 3px;
  margin-top: 3px;
}

.char-style-maintext {
  color: #324d78;
  font-family: "Helvetica Regular", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
}

/* Ergaenzung: Hinweis bei fehlgeschlagener Anmeldung. Das Original zeigte
   stattdessen eine leere Seite, was Mieter regelmaessig ratlos zuruecklaesst. */
.rechtliches {
  margin-top: 28px;
  color: #666;
}

.rechtliches a {
  color: #324d78;
}

.anmelde-fehler {
  color: #a00;
  font-weight: bold;
  margin: 8px 0;
}

.editor-leiste {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 8px;
  padding: 4px;
  background: #f8fafc;
  border: 1px solid #e1e7ee;
  border-radius: 10px;
}

.mainten-seite .editor-leiste button {
  min-width: 36px;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #324d78;
}

.mainten-seite .editor-leiste button:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px #c5d0dc;
}

.editor-feld {
  min-height: 180px;
  width: 100%;
  max-width: 100%;
  border: 1px solid #8297ab;
  border-radius: 4px;
  padding: 8px 10px;
  background: #fff;
  overflow: auto;
  box-sizing: border-box;
}

body:has(.mainten-seite) {
  margin: 0;
  background: #eef2f6;
  color: #243044;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.mainten-seite {
  box-sizing: border-box;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 32px 28px 80px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #243044;
}

.mainten-seite *,
.mainten-seite *::before,
.mainten-seite *::after {
  box-sizing: border-box;
}

.verwaltung,
.verwaltung-kopf,
.loeschen,
.anleitung {
  width: 100%;
  max-width: none;
  font-size: 15px;
  line-height: 1.45;
}

.verwaltung-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d5dee6;
}

.verwaltung-kopf .firmaue {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.verwaltung-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}

.verwaltung-nav a {
  color: #324d78;
  text-decoration: none;
  font-weight: 600;
}

.verwaltung-nav a:hover {
  text-decoration: underline;
}

.verwaltung-nav form {
  margin: 0;
}

.verwaltung-nav button {
  padding: 6px 12px;
}

.verwaltung-block {
  border: 1px solid #e1e7ee;
  border-radius: 12px;
  padding: 22px 24px 8px;
  margin: 0 0 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(36, 48, 68, 0.05);
}

.verwaltung-block h2,
.anleitung h2 {
  margin: 0 0 6px;
  color: #324d78;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
}

.verwaltung-block h3 {
  margin: 14px 0 6px;
  color: #324d78;
  font-size: 13px;
}

.verwaltung-hinweis,
.anleitung p,
.anleitung li {
  color: #333;
}

.verwaltung-id {
  font-weight: bold;
  color: #324d78;
}

.feld {
  display: block;
  margin: 0 0 14px;
}

.feld-kopfzeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.feld-name {
  display: block;
  margin-bottom: 6px;
  color: #324d78;
  font-weight: 600;
}

.feld-zeile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feld-zeile input[type="text"],
.feld-zeile input[type="password"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.sichtbar-haken {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  color: #5c6b80;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.sichtbar-haken input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.feld-raster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 28px;
  align-items: start;
}

.feld-gruppe {
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  margin: 0 0 8px;
  padding: 14px 16px 8px;
  min-width: 0;
  background: #f8fafc;
}

.verwaltung-block .feld-gruppe-titel {
  display: block;
  width: auto;
  margin: 0 0 10px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 0;
  color: #324d78;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.feld-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}

.mainten-seite button,
.mainten-seite input[type="submit"],
.mainten-seite input[type="button"] {
  appearance: none;
  font: inherit;
  line-height: 1.2;
  border: 1px solid #c5d0dc;
  border-radius: 8px;
  background: #fff;
  color: #324d78;
  padding: 8px 14px;
  cursor: pointer;
}

.mainten-seite button:hover,
.mainten-seite input[type="submit"]:hover,
.mainten-seite input[type="button"]:hover {
  border-color: #324d78;
  background: #f4f7fb;
}

.mainten-seite .plus-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c5d0dc;
  background: #fff;
  color: #324d78;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 14px;
}

.mainten-seite .plus-knopf:hover {
  background: #f4f7fb;
  border-color: #324d78;
}

.plus-knopf span,
.feld-limit {
  color: #8297ab;
  font-size: 12px;
  font-weight: normal;
}

.mainten-seite .text-knopf {
  border: 0;
  background: transparent;
  color: #666;
  padding-left: 0;
}

.feld-limit {
  margin: 0;
}

.mainten-seite input[type="text"],
.mainten-seite input[type="password"],
.mainten-seite input[type="search"],
.verwaltung input[type="text"],
.verwaltung input[type="password"],
.verwaltung input[type="search"],
.loeschen input[type="text"] {
  display: block;
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #c5d0dc;
  border-radius: 8px;
  background: #fff;
  color: #243044;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feld-raster input[type="text"],
.feld-raster input[type="password"] {
  max-width: none;
}

.mainten-seite input[type="text"]:focus,
.mainten-seite input[type="password"]:focus,
.mainten-seite input[type="search"]:focus,
.editor-feld:focus {
  outline: none;
  border-color: #324d78;
  box-shadow: 0 0 0 3px rgba(50, 77, 120, 0.16);
}

.mainten-seite .primaer,
.mainten-seite .anmeldung input[type="submit"] {
  border-color: #324d78;
  background: #324d78;
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
}

.mainten-seite .primaer:hover,
.mainten-seite .anmeldung input[type="submit"]:hover {
  border-color: #243a5c;
  background: #243a5c;
  color: #fff;
}

.mainten-seite .gefaehrlich {
  border-color: #e2b4b4;
  background: #fff;
  color: #8d2a2a;
}

.mainten-seite .gefaehrlich:hover {
  border-color: #8d2a2a;
  background: #fdf6f6;
  color: #8d2a2a;
}

.datei-knopf {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c5d0dc;
  border-radius: 8px;
  background: #fff;
  color: #324d78;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.datei-knopf:hover {
  border-color: #324d78;
  background: #f4f7fb;
}

.datei-knopf input {
  display: none;
}

.logo-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.datei-name {
  color: #5c6b80;
  font-size: 14px;
}

.mainten-seite .primaer:disabled {
  opacity: 0.65;
  cursor: wait;
}

.suche label {
  display: block;
  margin-bottom: 6px;
  color: #324d78;
  font-weight: 600;
}

.mainten-seite .suche input {
  max-width: 420px;
}

.login-logo {
  display: block;
  mix-blend-mode: darken;
}

.anmeldung {
  max-width: 400px;
  margin-top: 8px;
  padding: 22px 24px 8px;
  background: #fff;
  border: 1px solid #e1e7ee;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(36, 48, 68, 0.05);
}

.anmeldung label {
  display: block;
  margin-bottom: 6px;
  color: #324d78;
  font-weight: 600;
}

.listen-rahmen {
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e1e7ee;
  border-radius: 12px;
  overflow: auto;
  box-shadow: 0 1px 2px rgba(36, 48, 68, 0.05);
}

.schalter-zeile {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 12px;
  font-weight: bold;
  color: #324d78;
}

.raum-fest,
.feld-fest {
  font-weight: bold;
}

.monitor-vorschau {
  border: 1px solid #324d78;
  background: #f7f9fb;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.monitor-aus {
  opacity: 0.72;
}

.monitor-status {
  margin: 0 0 8px;
  color: #324d78;
}

.monitor-zeile {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  background: #fff;
  border: 1px solid #8297ab;
  padding: 8px 10px;
  font-size: 15px;
}

.monitor-kurzwahl {
  font-weight: bold;
  color: #324d78;
}

.monitor-name {
  color: #324d78;
  font-weight: bold;
}

.monitor-beschreibung {
  color: #333;
}

.benutzer-liste {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.mainten-seite .benutzer-liste th,
.mainten-seite .benutzer-liste td {
  font-size: 15px;
  font-family: inherit;
  border-bottom: 1px solid #e6edf3;
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.benutzer-liste th:nth-child(2),
.benutzer-liste td:nth-child(2) {
  white-space: normal;
  width: 46%;
}

.benutzer-liste th {
  color: #5c6b80;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f8fafc;
}

.benutzer-liste tbody tr:last-child td {
  border-bottom: 0;
}

.benutzer-liste tbody tr:hover {
  background: #f4f7fb;
}

.benutzer-liste a {
  color: #324d78;
  font-weight: 600;
  text-decoration: none;
}

.benutzer-liste a:hover {
  text-decoration: underline;
}

.status {
  display: inline-block;
  min-width: 72px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
}

.status-an {
  background: #e5f2ea;
  color: #1d6b3a;
}

.status-aus {
  background: #eef1f4;
  color: #5c6b80;
}

.verwaltung-flag {
  color: #8297ab;
  font-size: 11px;
}

.gespeichert {
  color: #324d78;
  font-weight: bold;
}

.loeschen {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #8297ab;
}

.anleitung {
  font-size: 15px;
  line-height: 1.5;
}

.anleitung img {
  max-width: 100%;
  border: 1px solid #8297ab;
  margin: 8px 0 4px;
}

.anleitung figcaption {
  color: #666;
  font-size: 12px;
  margin: 0 0 16px;
}

@media (min-width: 960px) {
  .feld-raster {
    grid-template-columns: 1fr 1fr;
  }

  .feld-weit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .mainten-seite {
    padding: 20px 16px 48px;
  }

  .monitor-zeile {
    grid-template-columns: 1fr;
  }

  .listen-rahmen {
    overflow-x: auto;
  }
}
