/* NeXtMail Web – nm-gleich99: „Alle N im Ordner“ (Angebot, Fortschritt), Notiz-Konflikt, Detailfeld Abgleich.
   Wird nach gleich98.css geladen; Farben/Maße aus den Tokens von web.css und dichte.css. */

/* „Alle N im Ordner auswählen“ – sieht aus wie ein Textverweis in der Auswahl-Leiste */
.g99-alle-kn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--akzent-text, var(--accent)); font-weight: 600; cursor: pointer; white-space: nowrap; flex: none; }
.g99-alle-kn:hover { background: var(--hover); }
.g99-alle-kn:disabled { color: var(--muted); cursor: default; }
.g99-alle-kn svg.ic { width: 16px; height: 16px; }
.g99-alle-kn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g99-angebot { margin: 6px 0 2px; display: flex; justify-content: center; }
.g99-angebot-zeile { display: flex; justify-content: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--panel); flex: none; }
.g99-angebot-zeile .g99-alle-kn { max-width: 100%; }
.g99-angebot-zeile .g99-gewaehlt { line-height: 30px; overflow: hidden; text-overflow: ellipsis; }
.g99-angebot-zeile .g99-alle-kn > span { overflow: hidden; text-overflow: ellipsis; }
.g99-gewaehlt { margin: 0 6px; white-space: nowrap; font-weight: 600; color: var(--text); }
.g99-reihe { flex-wrap: wrap; justify-content: center; }
.auswahl-info .g99-reihe .leiste-kn .txt { display: inline; }

/* Fortschritt der Sammelaktionen (über den Meldungen) */
.g99-laeufe { position: fixed; left: 50%; bottom: calc(76px + var(--d-status, 0px)); transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column;
  gap: 8px; width: calc(100% - 32px); max-width: 440px; }
.g99-lauf { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--schatten); padding: 10px 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 6px 12px; align-items: center; font-size: 13.5px; }
.g99-lauf-text { display: flex; gap: 8px; min-width: 0; flex-wrap: wrap; }
.g99-lauf-text > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.g99-lauf-zahl { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g99-lauf .g99-balken { grid-column: 1; }
.g99-lauf-ab { grid-column: 2; grid-row: 1 / span 2; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 8px; height: 30px;
  padding: 0 10px; cursor: pointer; }
.g99-lauf-ab:hover { background: var(--hover); }
.g99-balken, .g99-ab-balken { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.g99-balken > span, .g99-ab-balken > span { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; }
.g99-ab-balken.unbestimmt > span { width: 30%; animation: g99-hin 1.4s ease-in-out infinite; }
@keyframes g99-hin { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .g99-ab-balken.unbestimmt > span { animation: none; width: 100%; opacity: .5; } .g99-balken > span { transition: none; } }

/* Notizen: Konfliktwarnung über dem Text */
.g99-notiz-konflikt { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin: 8px 12px 0; padding: 10px 12px; border-radius: 10px;
  background: var(--warn-soft); border: 1px solid var(--warn); color: var(--text); }
.g99-notiz-konflikt[hidden] { display: none; }
.g99-notiz-konflikt > svg.ic { color: var(--warn); flex: none; margin-top: 2px; }
.g99-nk-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; min-width: 0; }
.g99-nk-text > span { color: var(--muted); font-size: 13px; }
.g99-notiz-konflikt .knopfreihe { flex: 1 1 100%; margin: 4px 0 0; flex-wrap: wrap; gap: 6px; }

/* Detailfeld Abgleich */
.g99-ab { position: fixed; z-index: 95; width: 360px; max-width: calc(100vw - 16px); max-height: min(70vh, 520px); overflow: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--schatten); padding: 10px 12px; box-sizing: border-box;
  font-size: calc(var(--d-schrift, 14px) + var(--d-plus, 0px)); color: var(--text); }
.g99-ab-titel { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.g99-ab-liste { display: flex; flex-direction: column; gap: 10px; }
.g99-ab-konto { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; border-top: 1px solid var(--line); }
.g99-ab-kopf { display: flex; align-items: center; gap: 6px; min-width: 0; }
.g99-ab-kopf > svg.ic { width: 16px; height: 16px; flex: none; color: var(--muted); }
.g99-ab-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g99-ab-zustand { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 55%; font-size: calc(var(--d-schrift-klein, 12px) + var(--d-plus, 0px)); color: var(--muted); }
.g99-ab-zustand > span:last-child { overflow-wrap: anywhere; }
.g99-punkt { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.g99-punkt.ok { background: var(--ok); }
.g99-punkt.warn { background: var(--warn); }
.g99-punkt.gefahr { background: var(--gefahr); }
.g99-punkt.blau { background: var(--accent); }   /* nm26-status: verbindet = blau, kein Problem */
.g99-ab-schritt.g26-laeuft { color: var(--accent); }
.g99-ab-schritt { font-size: calc(var(--d-schrift-klein, 12px) + var(--d-plus, 0px)); overflow-wrap: anywhere; }
.g99-ab-zuletzt { font-size: calc(var(--d-schrift-klein, 12px) + var(--d-plus, 0px)); color: var(--muted); }
.g99-ab-hilfe { margin: 8px 0 0; }
.g99-ab-knoepfe { margin-top: 10px; flex-wrap: wrap; }
.statusleiste .nms-verb[type="button"] { cursor: pointer; }
