/* Schützen-App (Etappe F4): Stile aus index.html. a-sN = frühere style-Attribute (automatisch übernommen). */
/* Ansichten im gemeinsamen Hauptbereich der Seitenvorlage */
.ansicht{display:none}
.ansicht.active{display:flex;flex-direction:column;min-height:100%}
#main{padding:0;display:flex;flex-direction:column}
#main > .ansicht.active{flex:1}
.kopf-gruppe{display:contents}
.kopf-gruppe[hidden]{display:none}
#s-main > .topbar h1#titel{flex:1}
.gn-foot .tabnav{position:relative}
/* fünf Punkte in der Fussnavigation: etwas kleinere Schrift */
.gn-foot button{font-size:12px}
.kopf-ins-menue{display:none !important}
/* Titel je Ansicht: nur Quelle für die Kopfzeile, nie im Inhalt anzeigen (Code setzt teils style.display) */
.ansicht-titel{display:none !important}
.kopf-menue-punkt{width:100%;margin-bottom:8px;border:1.5px solid var(--border);background:none;text-align:left}
.anlass-text img, .rte-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 6px 0; }
.anlass-text a { color: #1a5fb4; }
/* Overlays + Admin + Meisterschaft: immer heller Hintergrund */
[id^="overlay-"] .form-input, #ms-edit-content .form-input, #admin-content .form-input,
[id^="overlay-"] .form-select, #ms-edit-content .form-select, #admin-content .form-select,
[id^="overlay-"] textarea, #ms-edit-content textarea, #admin-content textarea {
  background: #f5f7fa !important;
  color: #0a0a0a !important;
  border-color: #d0d5dd !important;
}
[id^="overlay-"] .form-label, #ms-edit-content .form-label, #admin-content .form-label { color: #444 !important; }
[id^="overlay-"] .section-label, #ms-edit-content .section-label { color: #777 !important; }
[id^="overlay-"] select option, #ms-edit-content select option, #admin-content select option { background: #fff; color: #0a0a0a; }
[id^="overlay-"] input::placeholder, #ms-edit-content input::placeholder { color: #aaa !important; }
.rte-body { background: #fff !important; color: #0a0a0a !important; }
.rte-output { color: var(--text) !important; }
.rte-output * { color: inherit !important; background: transparent !important; }
.pt-btn.sel, button.pt-btn.sel, [class~="sel"].pt-btn {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  font-weight: 800 !important;
  box-shadow: 0 0 0 2px rgba(22,163,74,0.4) !important;
  opacity: 1 !important;
}

/* Richtext Editor */
.rte-wrap { border: 1.5px solid #d0d5dd; border-radius: 8px; overflow: hidden; background: #ffffff !important; }
.rte-toolbar { display: flex; gap: 2px; padding: 6px 8px; background: #f5f7fa !important; border-bottom: 1px solid #e0e0e0; flex-wrap: wrap; }
.rte-btn { background: none; border: none; padding: 5px 8px; border-radius: 5px; cursor: pointer; font-size: 14px; color: #333; font-weight: 600; line-height: 1; }
.rte-btn:hover { background: #e0e4ed; }
.rte-btn.active { background: #dbeafe; color: #1a56a0; }
.rte-body { min-height: 120px; padding: 10px 12px; outline: none; font-size: 14px; line-height: 1.6; color: #0a0a0a; }
.rte-body ul, .rte-body ol { padding-left: 20px; }
.rte-body a { color: #1a56a0; }

.a-s1{text-align:center;margin-top:12px}
.a-s2{background:none;border:none;color:var(--text-muted);font-size:13px;cursor:pointer;text-decoration:underline}
.a-s3{text-align:center;margin-top:8px;font-size:13px;color:var(--text-muted)}
.a-s4{color:var(--blue);font-weight:600;text-decoration:none}
.a-s5{flex-shrink:0;padding-bottom:0}
.a-s6{display:flex;gap:6px;margin-bottom:12px;background:var(--bg-tertiary);border-radius:var(--radius-sm);padding:3px}
.a-s7{flex:1;padding:8px;border:none;border-radius:6px;background:var(--blue);color:#fff;font-weight:700;font-size:13px;cursor:pointer}
.a-s8{flex:1;padding:8px;border:none;border-radius:6px;background:transparent;color:var(--text-muted);font-weight:700;font-size:13px;cursor:pointer}
.a-s9{flex:1;overflow-y:auto}
.a-s10{flex-shrink:0}
.a-s11{display:flex;gap:8px;margin-bottom:8px}
.a-s12{flex:1;font-size:12px;padding:7px}
.a-s13{font-size:12px;padding:7px;width:100%}
.a-s14{margin-top:8px}
.a-s15{padding-top:0;flex:1;overflow-y:auto}
.a-s16{display:flex;background:var(--blue);flex-shrink:0;overflow-x:auto}
.a-s17{display:flex;background:var(--bg-tertiary);flex-shrink:0;overflow-x:auto;border-bottom:1px solid var(--border)}
.a-s18{display:flex;justify-content:space-between;align-items:center;padding:6px 12px;background:var(--bg-secondary);border-bottom:1px solid var(--border);gap:8px;flex-shrink:0}
.a-s19{display:flex;background:var(--blue);flex-shrink:0}
.a-s20{flex:1;padding:10px;border:none;background:rgba(255,255,255,0.2);color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.a-s21{flex:1;padding:10px;border:none;background:none;color:rgba(255,255,255,0.7);font-size:13px;font-weight:600;cursor:pointer}
.a-s22{flex:1;padding:8px 4px;border:none;border-radius:6px;background:transparent;color:var(--text-muted);font-weight:700;font-size:12px;cursor:pointer}
.a-s23{flex:1;padding:8px 4px;border:none;border-radius:6px;background:var(--blue);color:#fff;font-weight:700;font-size:12px;cursor:pointer}
.a-s24{text-align:center;font-size:12px;color:var(--text-muted);margin-bottom:16px}
.a-s25{flex:1;overflow-y:auto;display:flex;flex-direction:column;align-items:center;padding-top:16px}
.a-s26{flex:1;overflow-y:auto;padding-top:8px}
.a-s27{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2}
.a-s28{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:1.8}
.a-s29{position:absolute;top:2px;left:calc(50% + 6px);background:var(--danger);color:#fff;font-size:11px;font-weight:700;min-width:18px;height:18px;border-radius:9px;align-items:center;justify-content:center;padding:0 5px;line-height:1}
.a-s30{align-items:flex-end;padding:0}
.a-s31{background:var(--bg);border-radius:16px 16px 0 0;width:100%;max-height:90vh;overflow-y:auto;padding:20px 16px 32px}
.a-s32{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.a-s33{font-size:18px;font-weight:700}
.a-s34{background:none;border:none;font-size:22px;cursor:pointer;color:var(--text-muted);line-height:1;flex-shrink:0}
.a-s35{margin-bottom:10px}

/* Multiscore-Queransicht (früher .app.full-width): volle Breite, ohne Fussnavigation */
body.full-width #s-main{max-width:100% !important;box-shadow:none !important}
body.full-width {
  max-width: 100% !important;
  box-shadow: none !important;
}

/* Multiscore-Queransicht: Bottom-Nav ausblenden (kein Platz/Bedarf während der
   Schnellerfassung) UND die Punkte-Buttons füllen die tatsächlich verfügbare
   Höhe flexibel aus (statt einer festen Kompakt-Höhe) — auf grossen Tablets
   werden sie automatisch grösser, auf kleinen bleiben sie klein genug, dass
   alle 11 Werte (0–10) ohne Scrollen sichtbar sind. */
body.full-width .gn-foot { display: none !important; }

body.full-width #multi-erf-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.full-width .multi-quer-panels {
  flex: 1;
  display: flex;
  min-height: 0;
  align-items: stretch;
}
body.full-width .multi-quer-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.full-width .multi-quer-panel-header {
  flex-shrink: 0;
}
body.full-width .schuss-cols {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
body.full-width .schuss-col {
  height: auto;
}
body.full-width .schuss-col-header,
body.full-width .schuss-val {
  flex-shrink: 0;
}
body.full-width .pt-btn {
  flex: 1 1 0;
  height: auto !important;
  min-height: 22px;
  font-size: 15px !important;
}

/* Profil: PIN und Passwort eingeklappt (René 12.11.2026) */
details.profil-klapp > summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;margin-bottom:0}
details.profil-klapp > summary::-webkit-details-marker{display:none}
details.profil-klapp > summary::after{content:'▾';font-size:14px;color:var(--text-muted)}
details.profil-klapp[open] > summary{margin-bottom:12px}
details.profil-klapp[open] > summary::after{content:'▴'}
/* Modul Kalender: Knopf in der Terminliste, hervorgehobener Termin nach Direktlink */
.kal-modul-link { display: block; text-align: center; text-decoration: none; margin-bottom: 10px; }
.kal-item.kal-hervor { box-shadow: 0 0 0 3px var(--blue); transition: box-shadow .3s; }
/* Anlass-Anmeldung: Übersicht nach Verein und Gruppe */
.anl-gruppen { margin-bottom: 12px; }
.anl-gr { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.anl-gr.waehlbar { cursor: pointer; }
.anl-gr.waehlbar:hover, .anl-gr.gewaehlt { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.anl-gr-titel { font-size: 14px; font-weight: 700; }
.anl-gr-leute { font-size: 13px; margin-top: 2px; }
.anl-gr-klein { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.anl-gr-wl { font-size: 11px; color: #7a5b00; font-weight: 700; }
#overlay-anlass-anmeldung .anl-gr { background: #f5f6f8; color: #0a0a0a; border-color: #d8dbe0; }
#overlay-anlass-anmeldung .anl-gr-klein { color: #555; }
/* Schnellkasse (Schiessbetrieb › Kasse, René 15.11.2026): Artikel als Kacheln wie im Modul Verkauf */
.vk-such{margin-bottom:8px}
.ks-raster{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-bottom:12px}
.ks-artikel{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px;border-radius:12px;border:1.5px solid var(--border);background:var(--bg-card,#fff);color:var(--text);text-align:left;cursor:pointer;min-height:84px;font-family:inherit}
.ks-artikel b{font-size:14px;line-height:1.2}
.ks-artikel span{font-weight:800;color:var(--blue)}
.ks-artikel small{color:var(--text-muted);font-size:11px}
.ks-artikel:active{transform:scale(.97)}
.ks-leer{opacity:.45}
.ks-rueck{font-weight:700;margin-top:4px}
.ks-zahlen{display:flex;gap:8px;margin-bottom:8px}
.ks-zahlen .btn{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;margin:0;white-space:nowrap;padding:12px 6px;font-size:14px;min-width:0}
