/* Verwaltungsoberflaeche. Ergaenzt style.css (gleiche Optik wie die Karte). */
body.admin { height: auto; background: #f5f7f9; }
#page { max-width: 900px; margin: 0 auto; padding: 16px 18px 48px; }

header { display: flex; align-items: baseline; gap: 12px; }
header h1 { flex: 1; }
.maplink { color: #2f6db0; text-decoration: none; font-weight: 600; }
.maplink:hover { text-decoration: underline; }

section { margin-top: 8px; padding-bottom: 8px; }
input[type=text] { padding: 4px 6px; border: 1px solid #c3ccd4; border-radius: 4px; }
.row input[type=text] { flex: 1; min-width: 0; }

/* Oeffentlicher Datenbestand: zwei freie Zahlenfelder + Live-Vorschau */
.row { align-items: center; flex-wrap: wrap; gap: 10px; }
.row label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
input[type=number] {
  width: 7em; padding: 4px 6px; border: 1px solid #c3ccd4; border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.preview {
  margin: 8px 0; padding: 8px 10px; border-radius: 4px;
  background: #e6f0fa; border: 1px solid #b8d0e8; font-size: 15px;
}
.preview.error { background: #fbeded; border-color: #d8b3b3; color: #a01b1b; }
table.wirkung { width: auto; min-width: 320px; }

.warn {
  margin: 8px 0 12px; padding: 8px 10px; border-radius: 4px;
  background: #fdf3e3; border: 1px solid #e5c894; color: #6b4f16;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.grid div { background: #fff; border: 1px solid #dde2e7; border-radius: 4px; padding: 6px 8px; }
.grid dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #6b7681; }
.grid dd { margin: 2px 0 0; font-size: 17px; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; background: #fff; margin-top: 6px; }
th, td { text-align: left; padding: 5px 7px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #5a6673; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; }
td .meta { color: #6b7681; font-size: 12px; }
table:empty, table.hidden { display: none; }

.token { margin: 10px 0; padding: 8px 10px; background: #e6f0fa; border: 1px solid #b8d0e8; border-radius: 4px; }
.token p { margin: 0 0 6px; }
#tokenValue, #onboardValue {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px; background: #fff;
}
/* Quiet Zone: weisser Rand gehoert zum QR-Code, sonst scannt er schlecht. */
.token .qr { display: block; width: 220px; max-width: 100%; margin: 8px 0;
  background: #fff; border: 1px solid #b8d0e8; }
.token .qr:not([src]), .token .qr[src=""] { display: none; }
.tag { font-size: 11px; padding: 0 5px; border-radius: 8px; background: #e6f0fa; border: 1px solid #b8d0e8; color: #2f6db0; }
button.danger { border-color: #d8b3b3; color: #a01b1b; }
button.danger:hover { background: #fbeded; }
