/* Lager - 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, #e7b48a 0%, #9a5b2c 60%, #2b1608 120%);
  --accent: #b0703a;
}

nav.tabs { flex-wrap: wrap; }
@media (max-width: 560px) {
  nav.tabs button { font-size: 13px; padding: 10px 2px; }
}
.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; }
.wahl label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); cursor: pointer; }
.wahl label span { min-width: 0; overflow-wrap: anywhere; }
.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; }
.zahl { font-size: 18px; font-weight: 700; white-space: nowrap; flex: none; }
.zahl.rot { color: var(--off); }
.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 b { text-decoration: line-through; opacity: .6; }
.knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 48%; }
.badge.archiviert { 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; }

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

/* Nachbestellliste */
.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.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; }
.tab tr:first-child td { border-top: 0; }
.tab .r { text-align: right; white-space: nowrap; padding-right: 0; }
@media (max-width: 560px) {
  .tab th:nth-child(2), .tab td:nth-child(2), .tab th:nth-child(3), .tab td:nth-child(3) { display: none; }
}
dialog { width: min(560px, calc(100vw - 24px)); }
