/* ==========================================================================
   Formular-Stil "Kraeftig" (Zeusor)
   Gilt fuer Hauptinhalt und linke Zusatzbox. Wird nach main.css geladen.
   ========================================================================== */

/* ---------- Textfelder ---------- */
#maincontent input[type=text]:not(.zt-input),
#maincontent input[type=password],
#maincontent input[type=email],
#maincontent input:not([type]):not(.zt-input),
#maincontent textarea,
#addcontent input[type=text],
#addcontent input:not([type]) {
  font-family: inherit;
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid #cfe6c0;
  border-radius: 8px;
  background-color: #f8fcf5;
  box-sizing: border-box;
  min-height: 32px;
}
#maincontent textarea { min-height: 60px; }

/* ---------- Auswahlfelder (einzeilig) ---------- */
#maincontent select:not([multiple]):not([size]),
#maincontent select[size="1"]:not([multiple]),
#addcontent select:not([multiple]):not([size]),
#addcontent select[size="1"]:not([multiple]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  height: 32px;
  padding: 0 30px 0 10px;
  border: 1px solid #cfe6c0;
  border-radius: 8px;
  background: #f8fcf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2300b515'/%3E%3C/svg%3E") no-repeat right 11px center;
  cursor: pointer;
}

/* ---------- Auswahllisten (mehrzeilig / Mehrfachauswahl) ---------- */
#maincontent select[multiple],
#maincontent select[size]:not([size="1"]),
#addcontent select[multiple],
#addcontent select[size]:not([size="1"]) {
  font-family: inherit;
  font-size: 13px;
  padding: 4px;
  border: 1px solid #cfe6c0;
  border-radius: 8px;
  background-color: #f8fcf5;
}

/* ---------- Fokus fuer alle Felder ---------- */
#maincontent input:focus,
#maincontent select:focus,
#maincontent textarea:focus,
#addcontent input:focus,
#addcontent select:focus {
  outline: none;
  border-color: #00b515;
  box-shadow: 0 0 0 3px rgba(0, 181, 21, .18);
  background-color: #fff;
}

/* ---------- Buttons: Grundform (sekundaer, z. B. "Aendern", "Aktualisieren") ---------- */
#maincontent input[type=button],
#maincontent input[type=reset],
#maincontent button,
#addcontent input[type=button],
#addcontent input[type=submit],
#addcontent button {
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #d0f1b8;
  color: #1f5f12;
  cursor: pointer;
}
#maincontent input[type=button]:hover,
#maincontent input[type=reset]:hover,
#maincontent button:hover,
#addcontent input[type=button]:hover,
#addcontent input[type=submit]:hover,
#addcontent button:hover {
  background: #b9e99b;
}

/* ---------- Hauptaktion: Speichern / Absenden ---------- */
#maincontent input[type=submit],
#maincontent input[type=button][value="Speichern"] {
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  height: 32px;
  padding: 0 26px;
  border: 0;
  border-radius: 8px;
  background: #00b515;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 181, 21, .35);
  cursor: pointer;
}
#maincontent input[type=submit]:hover,
#maincontent input[type=button][value="Speichern"]:hover {
  background: #009c12;
}

/* ---------- Loeschen mit Text ("Loeschen", "Inhalt Loeschen") ---------- */
#maincontent input[value="Löschen"],
#maincontent input[value="Inhalt Löschen"] {
  background: #fdecea;
  color: #c0392b;
}
#maincontent input[value="Löschen"]:hover,
#maincontent input[value="Inhalt Löschen"]:hover {
  background: #c0392b;
  color: #fff;
}

/* ---------- Loeschen-Symbol ("X" in der Zeiterfassung) ---------- */
#maincontent input[type=button][value="X"] {
  width: 32px;
  padding: 0;
  color: transparent;
  background: #fdecea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l1 2h4v2H4V5h4zm-3 6h12l-1 12H7z' fill='%23c0392b'/%3E%3C/svg%3E") no-repeat center;
  background-size: 15px 15px;
}
#maincontent input[type=button][value="X"]:hover {
  background: #c0392b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l1 2h4v2H4V5h4zm-3 6h12l-1 12H7z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center;
  background-size: 15px 15px;
}

/* ---------- Deaktivierte Elemente ---------- */
#maincontent input:disabled,
#maincontent select:disabled,
#maincontent button:disabled {
  opacity: .5;
  cursor: default;
  box-shadow: none;
}

/* ---------- jQuery-UI-Datepicker (Projekte / Mitarbeiter-Projekte) ---------- */
.ui-datepicker {
  width: 250px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d0d0d0 !important;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}
.ui-datepicker .ui-datepicker-header {
  background: none;
  border: 0;
  color: #00b515;
  font-size: 14px;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  top: 3px;
  border-radius: 6px;
  cursor: pointer;
}
.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
  background: #d0f1b8;
  border: 0;
}
.ui-datepicker th {
  font-size: 11px;
  color: #777;
  font-weight: normal;
  text-transform: uppercase;
}
.ui-datepicker td a.ui-state-default {
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  background: #f7f7f7;
  border: 1px solid #e3e3e3;
  color: #000;
  font-weight: normal;
}
.ui-datepicker td a.ui-state-hover {
  background: #d0f1b8;
  border-color: #9be08a;
}
.ui-datepicker td a.ui-state-highlight {
  border: 2px solid #00b515;
  font-weight: bold;
}
.ui-datepicker td a.ui-state-active {
  background: #00b515;
  border-color: #00b515;
  color: #fff;
  font-weight: bold;
}

/* ---------- Linke Box: Namensfilter + "Aktualisieren" in eine Zeile ---------- */
#addcontent #nameFilter {
  width: 140px !important;
}
#addcontent input[type=button],
#addcontent input[type=submit] {
  padding: 0 10px;
}

/* ---------- Datumsfelder: Kalender-Symbol bleibt neben dem Feld ---------- */
#maincontent td:has(> img[src*="Calendar.png"]) {
  white-space: nowrap;
}
#maincontent img[src*="Calendar.png"],
#maincontent img[src*="Calendar8.png"] {
  vertical-align: middle;
  margin-left: 4px;
  cursor: pointer;
}
#maincontent input[id^="SelectedDate"] {
  width: 100px;
}

/* ---------- Checkboxen und Optionsfelder: weisser Kasten, gruenes Haekchen ---------- */
#maincontent input[type=checkbox], #addcontent input[type=checkbox], .ui-dialog input[type=checkbox],
#maincontent input[type=radio],    #addcontent input[type=radio],    .ui-dialog input[type=radio] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0 7px 0 0;
  padding: 0;
  vertical-align: -4px;
  background: #fff no-repeat center;
  border: 2px solid #9bd88a;
  cursor: pointer;
  box-shadow: none;
  box-sizing: border-box;
}
#maincontent input[type=checkbox], #addcontent input[type=checkbox], .ui-dialog input[type=checkbox] {
  border-radius: 4px;
}
#maincontent input[type=radio], #addcontent input[type=radio], .ui-dialog input[type=radio] {
  border-radius: 50%;
}
/* Haken */
#maincontent input[type=checkbox]:checked, #addcontent input[type=checkbox]:checked, .ui-dialog input[type=checkbox]:checked {
  border-color: #00b515;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3 3 6.6-7' fill='none' stroke='%2300b515' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px 14px;
}
/* Punkt */
#maincontent input[type=radio]:checked, #addcontent input[type=radio]:checked, .ui-dialog input[type=radio]:checked {
  border-color: #00b515;
  background-image: radial-gradient(circle, #00b515 0 4px, transparent 4.5px);
}
/* Fokus / Ueberfahren */
#maincontent input[type=checkbox]:hover, #addcontent input[type=checkbox]:hover, .ui-dialog input[type=checkbox]:hover,
#maincontent input[type=radio]:hover,    #addcontent input[type=radio]:hover,    .ui-dialog input[type=radio]:hover {
  border-color: #00b515;
}
#maincontent input[type=checkbox]:focus-visible, #addcontent input[type=checkbox]:focus-visible, .ui-dialog input[type=checkbox]:focus-visible,
#maincontent input[type=radio]:focus-visible,    #addcontent input[type=radio]:focus-visible,    .ui-dialog input[type=radio]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 181, 21, .25);
}

/* ---------- Linke Box: etwas mehr Luft zwischen und unter den Elementen ---------- */
#addcontent .entry {
  line-height: 24px;
}
#addcontent #form td {
  padding-top: 3px;
}
#addcontent {
  padding-bottom: 6px;
}

/* ---------- Tabellenzeilen mit altem onMouseOver/onMouseOut (setzt Weiss bzw. Grau inline) ----------
   Inline-Farbe neutralisieren, Hervorhebung per CSS. Gilt fuer alle Listen und Dialoge. */
tr[onmouseout*="backgroundColor"] {
  background-color: transparent !important;
}
tr[onmouseover*="backgroundColor"]:hover {
  background-color: #e6f5dc !important;
}

/* ---------- Zurueck-Links als Button (wie "Aktualisieren") ---------- */
#maincontent a.zbtn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  background: #d0f1b8;
  color: #1f5f12;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  margin: 8px 0;
}
#maincontent a.zbtn-back::before {
  content: "\2190";
  font-size: 14px;
}
#maincontent a.zbtn-back:hover,
#maincontent a.zbtn-back:focus-visible {
  background: #b9e99b;
  color: #1f5f12;
  text-decoration: none;
}

/* ---------- Aktions-Buttons als Links (z. B. KSN-Versand) ---------- */
#maincontent .ksn-sendbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}
#maincontent a.zbtn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}
#maincontent a.zbtn-main { background: #00b515; color: #fff; }
#maincontent a.zbtn-main:hover { background: #009a12; color: #fff; text-decoration: none; }
#maincontent a.zbtn-test { background: #fff3cd; color: #7a5a00; box-shadow: inset 0 0 0 1px #f0c94a; }
#maincontent a.zbtn-test:hover { background: #ffe9a6; color: #7a5a00; text-decoration: none; }

/* ---------- Ablaufseite (z. B. KSN-Versand): Status + Protokoll ---------- */
#maincontent .zexe-status {
  margin: 16px 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
}
#maincontent .zexe-run  { background: #eef6ff; color: #1d4f86; }
#maincontent .zexe-ok   { background: #d0f1b8; color: #1f5f12; }
#maincontent .zexe-test { background: #fff3cd; color: #7a5a00; box-shadow: inset 0 0 0 1px #f0c94a; }
#maincontent .zexe-err  { background: #ffe3e3; color: #a12020; }
#maincontent .zexe-run::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin: 0 8px -1px 0;
  border: 2px solid #9cc3ec;
  border-top-color: #1d4f86;
  border-radius: 50%;
  animation: zexe-spin .8s linear infinite;
}
@keyframes zexe-spin { to { transform: rotate(360deg); } }
#maincontent .zexe-log {
  padding: 14px 18px;
  border: 1px solid #cfe6c0;
  border-radius: 8px;
  background: #f8fcf5;
  font-size: 13px;
  line-height: 1.45;
}
#maincontent .zexe-log:empty { display: none; }
#maincontent .zexe-log hr {
  border: 0;
  border-top: 1px solid #dfe9d6;
  margin: 8px 0;
}
#maincontent .zexe-log a.zbtn { margin-top: 6px; }

/* ---------- Leistungsnachweise Schulassistenz ---------- */
#maincontent .lnw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 14px; }
#maincontent a.zbtn:not(.zbtn-main):not(.zbtn-test) { background: #d0f1b8; color: #1f5f12; }
#maincontent a.zbtn:not(.zbtn-main):not(.zbtn-test):hover { background: #b9e99b; text-decoration: none; }
.lnw-count { display: inline-block; padding: 6px 10px; border-radius: 6px; font-weight: bold; font-size: 13px; }
.lnw-status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-weight: bold; font-size: 12px; white-space: nowrap; }
.lnw-ok { background: #e6f5dc; color: #1f5f12; }
.lnw-warn { background: #fff3cd; color: #7a5a00; }
.lnw-hint { color: #a35a00; font-size: 12px; margin-top: 2px; }
.lnw-sub { color: #666; font-size: 11px; }
.lnw-legend { color: #666; font-size: 11px; margin-top: 14px; }
.lnw-table td { vertical-align: top; border-bottom: 1px solid #eee; }
.lnw-btn, #maincontent a.lnw-btn {
  display: inline-block; cursor: pointer; padding: 3px 9px; margin-left: 4px; border-radius: 5px;
  background: #d0f1b8; color: #1f5f12; font-size: 12px; font-weight: bold; text-decoration: none; vertical-align: middle;
  line-height: 18px; height: auto; box-sizing: content-box;
}
.lnw-btn:hover, #maincontent a.lnw-btn:hover { background: #b9e99b; text-decoration: none; }
.lnw-btn-missing { background: #fff3cd; color: #7a5a00; box-shadow: inset 0 0 0 1px #f0c94a; }
.lnw-icon {
  display: inline-block; cursor: pointer; width: 30px; height: 30px; line-height: 30px; margin: 0 2px; text-align: center; border-radius: 6px;
  background: #1f6fb5; color: #fff; font-weight: bold; font-size: 12px; letter-spacing: .5px;
}
.lnw-icon:hover { background: #17598f; }
.lnw-dialog h3 { margin: 16px 0 6px; font-size: 13px; }
.lnw-versions td { border-bottom: 1px solid #eee; font-size: 12px; }
.lnw-dayrate-h { width: 52px; text-align: right; }
.lnw-ausfall { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; background: #e6f5dc; color: #1f5f12; }
.lnw-ausfall.lnw-over { background: #fde2e1; color: #a1100c; }

/* Leistungsnachweis-Daten (Dialog) */
.lnw-dialog { min-width: 620px; padding: 4px 6px 0; font-size: 13px; }
.lnw-note { margin: 0 0 14px; padding: 8px 12px; border-radius: 6px; background: #f3f9ee; color: #333; font-size: 12px; line-height: 1.5; }
.lnw-note a { font-weight: bold; }
.lnw-note-warn { background: #fff3cd; color: #7a5a00; }
table.lnw-form { width: 100%; border-collapse: collapse; }
table.lnw-form th { width: 170px; padding: 9px 14px 9px 0; text-align: left; vertical-align: top; font-weight: bold; white-space: nowrap; line-height: 30px; }
table.lnw-form td { padding: 9px 0; vertical-align: top; line-height: 30px; }
table.lnw-form tr + tr th, table.lnw-form tr + tr td { border-top: 1px solid #eef3ea; }
table.lnw-form input.lnw-wide { width: 100%; max-width: 400px; box-sizing: border-box; }
table.lnw-form input.lnw-short { width: 64px; text-align: right; }
table.lnw-form #lnw_validfrom { width: 110px; }
.lnw-pair { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; white-space: nowrap; }
.lnw-help { color: #777; font-size: 11px; line-height: 1.4; margin-top: 4px; }
.lnw-section { margin: 18px 0 6px; font-weight: bold; font-size: 13px; color: #1f5f12; }
table.lnw-versions { border-collapse: collapse; font-size: 12px; }
table.lnw-versions th { background: #d0f1b8; text-align: left; padding: 5px 8px; white-space: nowrap; }
table.lnw-versions td { padding: 5px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
.lnw-icon-missing { background: #e69500; }
.lnw-icon-missing:hover { background: #c47f00; }
table.lnw-form input[type="text"] { height: 30px; box-sizing: border-box; vertical-align: middle; }
table.lnw-form th, table.lnw-form td { padding-top: 8px; padding-bottom: 8px; }
.lnw-ln { display: inline-block; cursor: pointer; margin: 0 2px; line-height: 0; border-radius: 6px; }
.lnw-dialog, .lnw-dialog table, .lnw-dialog th, .lnw-dialog td { text-align: left; }
.lnw-head { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; padding: 6px 0; border-top: 1px solid #e3eedb; }
.lnw-info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #1f6fb5; color: #1f6fb5; background: transparent; font: bold italic 12px Georgia, serif; cursor: help; flex: none; margin-left: auto; }
.lnw-head-title { font-weight: bold; font-size: 14px; color: #1f5f12; }
a.lnw-add { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
a.lnw-add:hover { opacity: .85; }
table.lnw-versions tr.lnw-row-active td { background: #e6f5dc; }
table.lnw-versions tr.lnw-row-active td:first-child { box-shadow: inset 4px 0 0 #00b515; }
table.lnw-form input[type="text"] { padding: 0 8px; }
.lnw-dialog .lnw-head .lnw-info { background: transparent !important; color: #1f6fb5 !important; border: 1.5px solid #1f6fb5 !important; margin-left: auto !important; }

/* ---------- Fehler melden / Meldungen ---------- */
.zt-tabs { display: flex; gap: 6px; margin: 4px 0 14px; border-bottom: 2px solid #d0f1b8; }
#maincontent .zt-tabs a, .zt-tabs a { padding: 7px 14px; border-radius: 8px 8px 0 0; background: #eee; font-weight: bold; font-size: 13px; color: #555; text-decoration: none; }
#maincontent .zt-tabs a.on, .zt-tabs a.on { background: #d0f1b8; color: #1f5f12; }
#maincontent .zt-tabs a:hover { background: #e6f5dc; text-decoration: none; }
#maincontent .zt-tabs a.dev, .zt-tabs a.dev { margin-left: auto; font-weight: normal; }
.zt-tabs a.dev.on { font-weight: bold; }
table.zt-list { border-collapse: collapse; }
table.zt-list th { background: #d0f1b8; text-align: left; font-size: 13px; padding: 8px; }
table.zt-list td { padding: 8px; font-size: 13px; border-bottom: 1px solid #eee; vertical-align: top; }
/* lange Adressen (ref=...&tasks=...) umbrechen statt die Tabelle zu verbreitern */
table.zt-list td { overflow-wrap: anywhere; word-break: break-word; }
table.zt-list td:first-child, table.zt-list td .zt-badge { overflow-wrap: normal; word-break: normal; }
tr.zt-row-link { cursor: pointer; }
tr.zt-row-link:hover td { background: #f3f9ee; }
.zt-sub { font-size: 11px; color: #666; }
.zt-help { font-size: 11px; color: #777; }
.zt-mono { font-family: Consolas, Menlo, monospace; font-size: 12px; }
.zt-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: bold; white-space: nowrap; background: #eee; color: #555; }
.zt-s-neu { background: #e3effc; color: #1f5f9f; }
.zt-s-arbeit { background: #fff3cd; color: #7a5a00; }
.zt-s-rueckfrage { background: #fde2e1; color: #a1100c; }
.zt-s-erledigt { background: #e6f5dc; color: #1f5f12; }
table.zt-list tr.zt-login-fail td { background: #fdf1f0; }
.zt-login-bad { background: #f9d6d3; color: #8a1f17; }
table.zt-list tr.zt-login-req td { background: #eef4fb; }
.zt-login-reqb { background: #d6e6f7; color: #1d4f86; }
table.zt-list tr.zt-day td { background: #f4f4f4; cursor: pointer; border-top: 2px solid #fff; user-select: none; }
table.zt-list tr.zt-day:hover td { background: #ebf6e3; }
.zt-day-arrow { display: inline-block; width: 14px; color: #666; transition: transform .15s; }
tr.zt-day.open .zt-day-arrow { transform: rotate(90deg); }
.zt-day-sum { margin-left: 18px; font-size: 12px; color: #444; }
.zt-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 12px; vertical-align: 0; }
.zt-dot-ok { background: #2e9e1f; }
.zt-dot-fail { background: #d93025; }
.zt-dot-req { background: #1d6fd1; }
.zt-k-php, .zt-k-fatal { background: #fff3cd; color: #7a5a00; }
.zt-k-js { background: #fde2e1; color: #a1100c; }
.zt-k-403 { background: #eee; color: #555; }
.zt-meta { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px minmax(0, 1fr); gap: 6px 10px; font-size: 13px; background: #f7f7f7; border-radius: 8px; padding: 10px 12px; }
.zt-meta .k { color: #666; }
.zt-bubble { border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.45; }
.zt-bubble.zt-me { background: #f3f9ee; border: 1px solid #d9eccb; margin-right: 40px; }
.zt-bubble.zt-dev { background: #eef4fb; border: 1px solid #d3e3f5; margin-left: 40px; }
.zt-who { font-size: 11px; color: #666; margin-bottom: 4px; }
.zt-text { white-space: pre-wrap; margin-bottom: 4px; }
.zt-reply textarea { width: 100%; box-sizing: border-box; min-height: 64px; padding: 8px 10px; font: inherit; font-size: 13px; }
.zt-reply-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 6px; }
.zt-reply-bar label { font-weight: bold; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.zt-reply-bar input[type=submit].zt-submit-2 { background: #d0f1b8 !important; color: #1f5f12 !important; border-color: #d0f1b8 !important; }
.zt-reply-bar input[type=submit].zt-submit-2:hover { background: #bde6a0 !important; }
.zt-details { margin-top: 14px; background: #fff; border: 1px solid #e6e1cd; border-radius: 6px; }
.zt-details summary { padding: 8px 12px; font-weight: bold; cursor: pointer; color: #1f5f12; font-size: 12px; }
ul.zt-trail { margin: 0; padding: 0 12px 10px; list-style: none; font: 11.5px/1.55 Consolas, Menlo, monospace; color: #333; }
ul.zt-trail li { display: grid; grid-template-columns: 62px 78px minmax(0, 1fr); gap: 6px; border-top: 1px dashed #eee; padding: 2px 0; word-break: break-word; }
.zt-t { color: #888; }
.zt-k { font-weight: bold; }
.zt-k.zt-err { color: #c00000; }
.zt-k.zt-php { color: #a35a00; }
/* Dialog */
.zticket-dialog { font-size: 13px; text-align: left; }
.zt-ctx { background: #fff; border: 1px solid #e6e1cd; border-radius: 6px; padding: 8px 12px; font-size: 12px; color: #444; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.zt-row { display: grid; grid-template-columns: 160px 1fr; gap: 10px; margin-bottom: 10px; align-items: start; }
.zt-row > label { font-weight: bold; padding-top: 7px; }
.zt-row input[type=text], .zt-row textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 7px 10px; }
.zt-row textarea { min-height: 60px; resize: vertical; }
.zt-seg { display: inline-flex; border: 1px solid #cfe6c0; border-radius: 8px; overflow: hidden; }
.zt-seg label { margin: 0; cursor: pointer; }
.zt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.zt-seg span { display: inline-block; padding: 6px 16px; background: #fff; border-right: 1px solid #cfe6c0; font-weight: bold; color: #555; }
.zt-seg label:last-child span { border-right: 0; }
.zt-seg input:checked + span { background: #00b515; color: #fff; }
.zt-msg { color: #a1100c; font-weight: bold; margin: 10px 0 0; }
.zt-done { text-align: center; padding: 18px 10px; }
.zt-ok { width: 46px; height: 46px; border-radius: 50%; background: #00b515; color: #fff; font-size: 26px; line-height: 46px; margin: 0 auto 10px; }
.zdev-banner { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 2000; background: #1f6fb5; color: #fff; font-size: 13px;
  padding: 7px 16px; border-radius: 8px 8px 0 0; box-shadow: 0 -2px 8px rgba(0,0,0,.3); }
.zdev-banner a { color: #fff; text-decoration: underline; margin-left: 8px; }
.zt-export { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
select option.zt-inactive { background: #fde8e7; color: #7a2a26; }
/* Loeschen (Support) */
.zt-export form { display: inline; margin: 0; }
input[type=submit].zt-del-all { background: #fff !important; color: #b3261e !important; border: 1px solid #e8b4af !important; }
input[type=submit].zt-del-all:hover { background: #fdf1f0 !important; }
.zt-del-form { margin: 0; }
button.zt-del { border: 0 !important; background: none !important; box-shadow: none !important; color: #b3261e !important; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 6px !important; min-width: 0 !important; height: auto !important; opacity: .55; }
button.zt-del:hover { opacity: 1; }
/* Meldung: lange Adressen/Texte umbrechen statt die Seite zu verbreitern */
.zt-meta > span, .zt-text, ul.zt-trail li > span, .zt-who { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.lnw-ferien { display: inline-block; font-size: 11px; color: #1d4f86; background: #e6eef8; border-radius: 9px; padding: 1px 8px; white-space: nowrap; }
.zt-ferien-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 6px 0 4px; }
.zt-ferien-form label { font-size: 13px; font-weight: bold; display: inline-flex; align-items: center; gap: 6px; }
.zt-ferien-sync { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: #f7f7f7; border-radius: 8px; padding: 10px 12px; font-size: 12px; color: #444; margin: 6px 0 12px; }
.zt-ferien-sync form { margin: 0; flex: none; }

/* Taetigkeiten ohne Arbeitszeit (Unterrichtsausfall, Schulassistenz abwesend) */
.zt-nowork { color: #888; cursor: help; }

/* Tagesuebersicht: Kommentar und Bemerkung fuer den Leistungsnachweis untereinander, kompakt */
#maincontent input.zt-daynote { display: block; min-height: 0 !important; padding: 2px 8px !important; margin: 2px 0; font-size: 12px !important; line-height: 18px; }
/* Abstand zwischen den Eintraegen: +3px (oben +1, unten +2) */
#maincontent input.zt-daynote:first-child { margin-top: 3px; }
#maincontent input.zt-daynote:last-child { margin-bottom: 4px; }
#maincontent input.zt-daynote { width: 165px; }
#maincontent input.zt-daynote::placeholder { color: #c4c4c4; opacity: 1; }
#maincontent input.zt-daynote:focus::placeholder,
#maincontent input[name=lnwnote]:focus::placeholder { color: transparent; }
#maincontent input.zt-lnwnote { border-color: #b9d9a3; }

/* Kontaktstundennachweis: PDF-Knoepfe fuer Leistungsnachweis und Kontaktstunden beschriftet */
.zt-pdfgroup { margin-right: 18px; padding-right: 18px; border-right: 1px solid #d0d0d0; }
.zt-pdflabel { font-size: 11px; color: #666; vertical-align: middle; margin-right: 4px; }
#maincontent .zt-pdfgroup img, #maincontent td[align=right] > a > img { vertical-align: middle; }
