/* Auftraege - Akzent und Sonderbausteine fuer den Bildschirm. Das gemeinsame Bild kommt aus firmen.css,
   der Ausdruck aus styles.css. Farben nur ueber die Variablen aus firmen.css. */
:root {
  --g: linear-gradient(135deg, #93c5fd 0%, #1d4ed8 60%, #172554 120%);
  --accent: #3b82f6;
}

nav.tabs { flex-wrap: wrap; }
.muster { border-color: color-mix(in srgb, var(--warn) 55%, transparent); color: var(--warn); font-weight: 600; font-size: 14px; }
#gError { margin-bottom: 10px; }
.buttons { display: grid; margin-bottom: 12px; }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kopf h3 { min-width: 0; overflow-wrap: anywhere; }
.kopf > .muted { white-space: nowrap; flex: none; }
.card p.muted { overflow-wrap: anywhere; line-height: 1.5; }
.card h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.liste { list-style: none; padding: 0; display: grid; gap: 0; }
.liste li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.liste li:first-child { border-top: 0; padding-top: 0; }
.liste li > span:first-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; flex: 1; }
.liste li.durch > span:first-child { opacity: .6; text-decoration: line-through; }
.knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 48%; }
.badge.zu { color: var(--muted); }
.gespeichert { color: var(--ok); font-weight: 600; font-size: 14px; text-align: right; margin-top: 8px; }
.gespeichert.links-buendig { text-align: left; margin: 0 4px 10px; }
.beleg { border: 1px solid var(--border-stark); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; margin-top: 12px; }

/* Suche ueber der Liste, Knopfreihe ueber der Akte */
.planwahl { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.planwahl input { flex: 1; min-width: 180px; }
.planwahl button { flex: none; }

/* Tabellen: Positionen, Kosten, Aufstellung. Auf schmalen Schirmen laeuft die Tabelle in ihrer Karte quer, nicht die Seite. */
.quer { overflow-x: auto; }
.quer .tab { min-width: 560px; }      /* schmaler wuerden die Spalten Wort fuer Wort umbrechen */
.tab { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.tab th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 8px 6px 0; border-bottom: 1px solid var(--border-stark); }
.tab td { padding: 8px 8px 8px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; vertical-align: top; }
.tab tbody tr:first-child td { border-top: 0; }
.tab tfoot td { border-top: 1px solid var(--border-stark); font-weight: 600; }
.tab .r, .tab .fest { white-space: nowrap; }
.tab .r { text-align: right; }
.tab td:last-child, .tab th:last-child { padding-right: 0; }
.tab .knoepfe { max-width: none; flex-wrap: nowrap; }      /* die Knoepfe einer Zeile bleiben nebeneinander, die Tabelle laeuft quer */

/* Zahlenblock: Beschriftung links, Betrag rechts */
.zahlen { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-size: 14px; margin-top: 8px; }
.zahlen dt { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.zahlen dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zahlen .stark { color: var(--text); font-weight: 600; }
.zahlen .linie { grid-column: 1 / -1; border-top: 1px solid var(--border); height: 0; }
.tab .r, .zahlen dd { font-variant-numeric: tabular-nums; }
dialog { width: min(560px, calc(100vw - 24px)); }
dialog textarea { min-height: 96px; }
