
/* Reusable LPC control base for pages outside the News/member editor forms. */
input.lpc-form-control, select.lpc-form-control, textarea.lpc-form-control {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d5dde4;
  border-radius: 12px;
  background-color: #fff;
  color: #0b2030;
  font: 16px/1.4 var(--lpc-font-family, Inter, ui-sans-serif, system-ui, sans-serif);
}
.lpc-form-control:focus-visible { border-color: #e5a23a; outline: 3px solid #e5a23a55; outline-offset: 2px; }
textarea.lpc-form-control { min-height: 150px; }
select.lpc-form-control {
  appearance: none; -webkit-appearance: none; padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a66b13' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
/* Reusable LPC form controls: Club palette, clear alignment and touch-friendly sizes. */
:is(#editor, #member-form) input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]),
:is(#editor, #member-form) select,
:is(#editor, #member-form) textarea,
:is(#editor, #member-form) input.flatpickr-input {
  box-sizing: border-box;
  min-height: 50px;
  border: 1px solid #d5dde4;
  border-radius: 12px;
  background-color: #fff;
  color: #0b2030;
  font: 16px/1.4 var(--lpc-font-family, Inter, ui-sans-serif, system-ui, sans-serif);
}
:is(#editor, #member-form) input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]),
:is(#editor, #member-form) select,
:is(#editor, #member-form) textarea,
:is(#editor, #member-form) input.flatpickr-input { padding: 12px 14px; }
:is(#editor, #member-form) textarea { min-height: 150px; }
:is(#editor, #member-form) .lpc-select-field { display: block; margin: 20px 0 14px; color: #102538; }
:is(#editor, #member-form) .lpc-select-field > span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
:is(#editor, #member-form) select.lpc-form-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0 46px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a66b13' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
:is(#editor, #member-form) .lpc-switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  margin: 14px 0;
  padding: 11px 14px;
  border: 1px solid #d5dde4;
  border-radius: 12px;
  background: #fff;
  color: #102538;
  cursor: pointer;
}
:is(#editor, #member-form) .lpc-switch-row:has(.lpc-switch-input:checked) {
  border-color: #e5a23a;
  background: #fffaf1;
}
:is(#editor, #member-form) .lpc-switch-copy { display: block; min-width: 0; font-size: 14px; line-height: 1.45; }
:is(#editor, #member-form) .lpc-switch-copy strong { display: block; color: #102538; font-weight: 700; }
:is(#editor, #member-form) .lpc-switch-copy > span { display: block; margin-top: 2px; color: #687887; font-size: 12px; font-weight: 400; }
:is(#editor, #member-form) .lpc-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
:is(#editor, #member-form) .lpc-switch-track {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 29px;
  border: 1px solid #bcc6cf;
  border-radius: 999px;
  background: #dce1e5;
  transition: background-color .16s ease, border-color .16s ease;
}
:is(#editor, #member-form) .lpc-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #071a2b33;
  content: "";
  transition: transform .16s ease;
}
:is(#editor, #member-form) .lpc-switch-input:checked + .lpc-switch-track { border-color: #071a2b; background: #071a2b; }
:is(#editor, #member-form) .lpc-switch-input:checked + .lpc-switch-track::after { transform: translateX(19px); }
:is(#editor, #member-form) .lpc-switch-input:focus-visible + .lpc-switch-track,
:is(#editor, #member-form) .lpc-form-select:focus-visible,
:is(#editor, #member-form) input.flatpickr-input:focus-visible { outline: 3px solid #e5a23a77; outline-offset: 2px; }

/* Member administration: reuse the News form controls without changing field behavior. */
body[data-admin-page="members"] #member-search {
  display: block;
  box-sizing: border-box;
  width: min(320px, 100%);
  min-height: 50px;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #d5dde4;
  border-radius: 12px;
  background: #fff;
  color: #0b2030;
  font: 16px/1.4 var(--lpc-font-family, Inter, ui-sans-serif, system-ui, sans-serif);
}
body[data-admin-page="members"] .member-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body[data-admin-page="members"] .member-form-actions button { min-height: 44px; margin: 0; padding: 12px 16px; border-radius: 8px; font: 650 14px/1.2 var(--lpc-font-family, Inter, ui-sans-serif, system-ui, sans-serif); }
body[data-admin-page="members"] .member-form-actions button:not(.primary),
body[data-admin-page="members"] #application-review .editor-actions button:not(.primary) { border-color: #d5dde4; background: #fff; color: #102538; }
body[data-admin-page="members"] .state-button { min-height: 38px; padding: 8px 12px; border-radius: 8px; }
:is(#editor, #member-form) input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]):focus-visible,
:is(#editor, #member-form) select:focus-visible,
:is(#editor, #member-form) textarea:focus-visible { border-color: #e5a23a; outline: 3px solid #e5a23a55; outline-offset: 2px; }
.flatpickr-calendar { border-color: #d5dde4; border-radius: 14px; font-family: var(--lpc-font-family, Inter, ui-sans-serif, system-ui, sans-serif); }
.flatpickr-day.selected,
.flatpickr-day.selected:hover { border-color: #071a2b; background: #071a2b; }
.calendar-actions { gap: 10px; padding: 12px; }
.calendar-actions button { min-height: 44px; border-radius: 10px; font-family: var(--lpc-font-family, Inter, ui-sans-serif, system-ui, sans-serif); }
.calendar-actions .calendar-confirm { border-color: #e5a23a; background: #e5a23a; color: #071a2b; }
@media (max-width: 600px) {
  :is(#editor, #member-form) .lpc-switch-row { min-height: 60px; padding: 12px; }
  :is(#editor, #member-form) .lpc-switch-copy { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#editor, #member-form) .lpc-switch-track,
  :is(#editor, #member-form) .lpc-switch-track::after { transition: none; }
}

/* Beiträge und Finanzen: gemeinsame LPC-Felder und Schalter; Tabellenzellen bleiben kompakt. */
body[data-finance-page] .form-grid input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]),
body[data-finance-page] .form-grid select,
body[data-finance-page] .form-grid textarea,
body[data-finance-page] .charge-edit-dialog form > label > input:not([type="hidden"]),
body[data-finance-page] .charge-edit-dialog form > label > select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d5dde4;
  border-radius: 12px;
  background-color: #fff;
  color: #0b2030;
  font: 16px/1.4 var(--lpc-font-family, Inter, ui-sans-serif, system-ui, sans-serif);
}
body[data-finance-page] .form-grid textarea { min-height: 150px; }
body[data-finance-page] .form-grid select,
body[data-finance-page] .charge-edit-dialog form > label > select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a66b13' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
body[data-finance-page] .form-grid :is(input:not([type="checkbox"]), select, textarea):focus-visible,
body[data-finance-page] .charge-edit-dialog :is(input:not([type="hidden"]), select):focus-visible {
  border-color: #e5a23a;
  outline: 3px solid #e5a23a55;
  outline-offset: 2px;
}
body[data-finance-page] .cashbook-existing-payment.lpc-switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  margin: 14px 0;
  padding: 11px 14px;
  border: 1px solid #d5dde4;
  border-radius: 12px;
  background: #fff;
  color: #102538;
  cursor: pointer;
}
body[data-finance-page] .cashbook-existing-payment.lpc-switch-row:has(.lpc-switch-input:checked) { border-color: #e5a23a; background: #fffaf1; }
body[data-finance-page] .cashbook-existing-payment .lpc-switch-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
body[data-finance-page] .cashbook-existing-payment .lpc-switch-track { position: relative; order: 2; flex: 0 0 48px; width: 48px; height: 29px; border: 1px solid #bcc6cf; border-radius: 999px; background: #dce1e5; transition: background-color .16s ease, border-color .16s ease; }
body[data-finance-page] .cashbook-existing-payment .lpc-switch-track::after { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #071a2b33; content: ""; transition: transform .16s ease; }
body[data-finance-page] .cashbook-existing-payment .lpc-switch-input:checked + .lpc-switch-track { border-color: #071a2b; background: #071a2b; }
body[data-finance-page] .cashbook-existing-payment .lpc-switch-input:checked + .lpc-switch-track::after { transform: translateX(19px); }
body[data-finance-page] .cashbook-existing-payment .lpc-switch-copy { min-width: 0; color: #102538; font-size: 14px; line-height: 1.45; }
body[data-finance-page] .cashbook-existing-payment .lpc-switch-input:focus-visible + .lpc-switch-track { outline: 3px solid #e5a23a77; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { body[data-finance-page] .cashbook-existing-payment .lpc-switch-track, body[data-finance-page] .cashbook-existing-payment .lpc-switch-track::after { transition: none; } }
/* Kein seitenabhängiger Button-Farbwechsel bei Pointer-Hover. */
body[data-finance-page] .state-button:hover { border-color: #ccd3d9; background: #fff; color: #071a2b; }
body[data-admin-page="members"] .state-button:hover { border-color: #d4dbe0; background: #fff; color: #071a2b; }
/* Shared controls for remaining live forms. Excludes file, checkbox, radio, range and hidden inputs. */
body[data-ci-form-controls="shared"] :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), select, textarea) {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px;
  border: 1px solid #d5dde4; border-radius: 12px; background-color: #fff; color: #0b2030;
  font: 16px/1.4 var(--lpc-font-family, Inter, ui-sans-serif, system-ui, sans-serif);
}
body[data-ci-form-controls="shared"] textarea { min-height: 150px; }
body[data-ci-form-controls="shared"] select {
  appearance: none; -webkit-appearance: none; padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a66b13' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
body[data-ci-form-controls="shared"] :is(input, select, textarea):focus-visible { border-color: #e5a23a; outline: 3px solid #e5a23a55; outline-offset: 2px; }
body[data-ci-form-controls="shared"] :is(input, select, textarea):disabled,
body[data-ci-form-controls="shared"] :is(input, select, textarea)[readonly] { background-color: #f6f3ed; color: #60717d; }

body[data-ci-form-controls="shared"] .role-copy-controls select { width: auto; flex: 1 1 280px; }

/* Flatpickr controls retain their own compact header geometry; global form sizing must not hide the year. */
body[data-ci-form-controls="shared"] .flatpickr-calendar select.flatpickr-monthDropdown-months {
  box-sizing: content-box !important; width: auto !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  appearance: menulist; -webkit-appearance: menulist; background: transparent; font: inherit; color: inherit;
}
body[data-ci-form-controls="shared"] .flatpickr-calendar .flatpickr-current-month input.cur-year {
  box-sizing: content-box !important; display: inline-block !important; width: 6ch !important; min-width: 0 !important; min-height: 0 !important; padding: 0 0 0 .5ch !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; font: inherit !important; color: inherit !important;
}
