/* E-Rechnung: öffentliche Prüfseite und Portalseiten. Baut auf style.css bzw. portal.css auf. */
.er-upload { display: grid; gap: 14px; margin: 24px 0 32px; }
.er-ablage { position: relative; display: grid; place-items: center; gap: 4px; padding: 40px 16px;
  text-align: center; border: 2px dashed #c9cfd6; border-radius: 12px; background: #fff; cursor: pointer; }
.er-ablage:hover, .er-ablage:focus-within { border-color: #1f5f8b; background: #f2f7fb; }
.er-ablage input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.er-ablage small, .er-leise { color: #5f6670; }

.er-siegel { display: grid; gap: 4px; margin: 0 0 24px; padding: 14px 16px; border: 1px solid #d5d2cb;
  border-left-width: 5px; border-radius: 8px; background: #fff; }
.er-siegel span { color: #5f6670; }
.er-gut { border-color: #2e7d4f; } .er-gut strong { color: #2e7d4f; }
.er-schlecht { border-color: #a4262c; } .er-schlecht strong { color: #a4262c; }
.er-offen { border-color: #9a6b00; } .er-offen strong { color: #7a5a00; }

.er-regeln { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.er-regeln li { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 12px; padding: 10px 14px;
  background: #fff; border: 1px solid #d5d2cb; border-left-width: 4px; border-radius: 8px; }
.er-regeln .er-fehler { border-left-color: #a4262c; }
.er-regeln .er-warnung { border-left-color: #9a6b00; }
.er-regeln code { font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; }
.er-regeln div { display: grid; gap: 2px; min-width: 0; }
.er-regeln span { color: #5f6670; font-size: .9rem; overflow-wrap: anywhere; }
@media (max-width: 560px) { .er-regeln li { grid-template-columns: 1fr; gap: 4px; } }

.er-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 28px; }
.er-kopf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.er-kopf dt { font-size: .8rem; color: #5f6670; }
.er-kopf dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.er-zwei { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 16px; }
.er-karte { padding: 12px 16px; background: #fff; border: 1px solid #d5d2cb; border-radius: 8px; }
.er-karte h3 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: #5f6670; }
.er-karte p { margin: 0 0 6px; overflow-wrap: anywhere; }
.er-klein { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0 0; font-size: .9rem; }
.er-klein dt { color: #5f6670; } .er-klein dd { margin: 0; overflow-wrap: anywhere; }

.er-tabelle { width: 100%; border-collapse: collapse; background: #fff; }
.er-tabelle th { font-size: .8rem; color: #5f6670; font-weight: 600; text-align: left; }
.er-tabelle th, .er-tabelle td { padding: 7px 8px; border-bottom: 1px solid #e3e0da; vertical-align: top; }
.er-tabelle .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.er-eingabe { min-width: 640px; }
.er-eingabe td:first-child { width: 40%; }
.er-eingabe input[name="pos_menge"] { width: 80px; }
.er-eingabe input[name="pos_ust"] { width: 60px; }
.er-eingabe textarea { resize: vertical; overflow: hidden; min-height: 36px; width: 100%; }
.er-aus { opacity: .35; pointer-events: none; }

.er-summen { display: grid; gap: 2px; justify-content: end; margin: 16px 0; font-variant-numeric: tabular-nums; }
.er-summen div { display: flex; justify-content: space-between; gap: 24px; }
.er-summen dt { color: #5f6670; } .er-summen dd { margin: 0; }
.er-summen .er-gesamt { font-weight: 700; border-top: 1px solid #d5d2cb; padding-top: 4px; margin-top: 4px; }
.er-summen .er-gesamt dt { color: inherit; }

.er-cta { margin-top: 48px; padding: 20px; border-radius: 12px; background: #f2f7fb; }
.er-cta h2 { margin-top: 0; }

.er-arbeitsflaeche { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .er-arbeitsflaeche { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.er-vorschau { position: sticky; top: 16px; height: calc(100vh - 32px); }
.er-vorschau iframe { width: 100%; height: 100%; border: 1px solid #d5d2cb; border-radius: 8px; background: #fff; }
@media (max-width: 1099px) { .er-vorschau { position: static; height: 70vh; } }

/* style.css setzt dd global rechtsbündig ohne Umbruch – für Kopfdaten und Adressen aufheben */
.er-kopf dd, .er-klein dd { text-align: left; white-space: normal; }
.er-klein dd { font-weight: 400; }
