/* Modul sicherung – Datensicherung: Export und Import.
   Eigene Datei, damit portal.css unangetastet bleibt. */

.sich-wrap { display: grid; gap: 18px; }
.sich-wrap .panel { overflow: visible; }

/* Hinweisleiste über beiden Panels */
.sich-note {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 16px; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: 13px; background: var(--soft); color: var(--ink); font-size: 13px;
}
.sich-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.sich-note.warn { border-left-color: var(--gold); background: var(--gold-soft); }
.sich-note.warn svg { color: #9a6c0b; }
.sich-note.bad { border-left-color: var(--red); background: var(--red-soft); }
.sich-note.bad svg { color: var(--red); }
.sich-note p { margin: 0; }
.sich-note p + p { margin-top: 6px; }
.sich-note strong { display: block; margin-bottom: 3px; }

/* Bereichsauswahl */
.sich-bereiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.sich-bereich {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff;
  cursor: pointer; transition: .16s;
}
.sich-bereich:hover { border-color: #b6c6d3; }
.sich-bereich.aktiv { border-color: var(--blue); background: #f3fafe; }
.sich-bereich.gesperrt { opacity: .55; cursor: not-allowed; }
.sich-bereich input { width: 17px; height: 17px; margin: 2px 0 0; }
.sich-bereich strong { display: block; font: 700 14px/1.3 'Manrope', system-ui, sans-serif; }
.sich-bereich small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.sich-bereich em { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 700; }

/* Format und Aktionen */
.sich-optionen { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 16px; }
.sich-feld { display: grid; gap: 5px; min-width: 190px; }
.sich-feld > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.sich-feld select, .sich-feld input[type="text"] {
  height: 41px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
.sich-feld select:disabled { background: var(--soft); color: var(--muted); }
.sich-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }

/* Zahlentabelle */
.sich-tabelle-wrap { overflow-x: auto; }
.sich-tabelle { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
.sich-tabelle th, .sich-tabelle td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.sich-tabelle th:first-child, .sich-tabelle td:first-child { text-align: left; }
.sich-tabelle thead th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.sich-tabelle tbody tr:last-child td { border-bottom: 0; }
.sich-tabelle tbody th { font-weight: 700; text-align: left; }
.sich-tabelle .null { color: #b3c0cb; }
.sich-tabelle .neu { color: var(--green); font-weight: 700; }
.sich-tabelle .ueber { color: var(--orange); font-weight: 700; }
.sich-tabelle .weg { color: var(--red); font-weight: 700; }
.sich-tabelle tfoot td, .sich-tabelle tfoot th { padding-top: 10px; font-weight: 800; }
.sich-tabelle-hinweis { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

/* Ablagefeld */
.sich-drop {
  display: grid; gap: 8px; place-items: center; padding: 30px 20px; text-align: center;
  border: 2px dashed var(--line); border-radius: 15px; background: var(--soft); color: var(--muted);
  transition: .16s;
}
.sich-drop.aktiv { border-color: var(--blue); background: #eaf5fc; color: var(--ink); }
.sich-drop svg { width: 34px; height: 34px; color: var(--blue); }
.sich-drop strong { color: var(--ink); font: 700 15px 'Manrope', system-ui, sans-serif; }
.sich-drop small { font-size: 12px; }
.sich-drop input[type="file"] { display: none; }

/* Kopfzeile der gelesenen Datei */
.sich-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 16px; }
.sich-kopf > div { padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.sich-kopf span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sich-kopf strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; word-break: break-word; }

/* Betriebsart */
.sich-modi { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 0 0 16px; }
.sich-modus {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer;
}
.sich-modus.aktiv { border-color: var(--blue); background: #f3fafe; }
.sich-modus input { width: 17px; height: 17px; margin: 2px 0 0; }
.sich-modus strong { display: block; font: 700 14px/1.3 'Manrope', system-ui, sans-serif; }
.sich-modus small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

/* Rückfrage beim Ersetzen */
.sich-bestaetigung { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--red); border-radius: 13px; background: var(--red-soft); }
.sich-bestaetigung p { margin: 0; font-size: 13px; }
.sich-bestaetigung code { padding: 1px 6px; border-radius: 5px; background: #fff; font-weight: 700; }
.sich-bestaetigung input { height: 41px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* Bericht */
.sich-liste { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sich-liste li { display: flex; gap: 9px; align-items: baseline; color: var(--muted); font-size: 13px; }
.sich-liste li:before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--blue); }
.sich-ruecklage { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; padding: 13px 16px; border: 1px solid var(--green); border-radius: 13px; background: var(--green-soft); }
.sich-ruecklage p { flex: 1; min-width: 210px; margin: 0; font-size: 13px; }
.sich-ruecklagen { display: grid; gap: 8px; }
.sich-ruecklagen-zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 13px; }
.sich-ruecklagen-zeile span { color: var(--muted); font-size: 12px; }
.sich-ruecklagen-zeile .sich-datei { flex: 1; min-width: 200px; font-weight: 700; word-break: break-all; }

.sich-busy { color: var(--muted); font-size: 13px; }
.sich-fehler { margin: 0 0 14px; padding: 12px 15px; border: 1px solid var(--red); border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 13px; }

/* Schmale Fenster: alles einspaltig, nichts läuft über den Rand */
@media (max-width: 760px) {
  .sich-bereiche, .sich-modi, .sich-kopf { grid-template-columns: 1fr; }
  .sich-optionen { flex-direction: column; align-items: stretch; }
  .sich-aktionen { margin-left: 0; }
  .sich-aktionen .button { width: 100%; }
  .sich-feld { min-width: 0; }
  .sich-ruecklage .button { width: 100%; }
}
