/* frmAuswahlNamen – Teilnehmer auswählen */
.shg-teilnehmer-auswahl-page .fi-header-heading {
    color: #1f4f4b;
}

.shg-teilnehmer-auswahl-page .fi-header-subheading {
    color: #4d8f8a;
    font-weight: 600;
}

/* Header: Schließen getrennt, Aktionen kompakt in Toolbar */
.teilnehmer-auswahl-header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.25rem;
}

.teilnehmer-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.teilnehmer-header-titles {
    flex: 1 1 auto;
    min-width: 0;
}

.teilnehmer-header-close {
    flex: 0 0 auto;
    padding-left: 0.75rem;
    border-left: 2px solid #c5e3e0;
}

.teilnehmer-header-close-btn.fi-btn {
    white-space: nowrap;
}

.teilnehmer-header-toolbar {
    padding: 0.45rem 0.65rem;
    background: #e8f4f3;
    border: 1px solid #c5e3e0;
    border-radius: 8px;
}

.teilnehmer-header-toolbar .fi-ac {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.4rem;
}

.teilnehmer-header-toolbar .teilnehmer-toolbar-btn.fi-btn {
    font-size: 0.8125rem;
    padding: 0.35rem 0.55rem;
    min-height: 2rem;
}

.teilnehmer-header-toolbar .fi-btn .fi-btn-label {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .teilnehmer-header-top {
        flex-direction: column;
    }

    .teilnehmer-header-close {
        align-self: flex-end;
        padding-left: 0;
        border-left: none;
        padding-top: 0.25rem;
        border-top: 2px solid #c5e3e0;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

.shg-auswahl-tabelle-wrap {
    margin-top: 0.25rem;
}

.shg-auswahl-tabelle-scroll {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #c5e3e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(77 143 138 / 0.1);
}

.shg-teilnehmer-auswahl-page .fi-main,
.shg-teilnehmer-auswahl-page .fi-page,
.shg-teilnehmer-auswahl-page .fi-page-content {
    overflow: visible !important;
}

.shg-auswahl-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.shg-auswahl-tabelle th {
    padding: 0.5rem 0.65rem;
    text-align: left;
    font-weight: 700;
    color: #1f4f4b;
    background: #e8f4f3;
    border-bottom: 1px solid #c5e3e0;
    white-space: nowrap;
}

.shg-auswahl-tabelle td {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid #e8f4f3;
    vertical-align: middle;
    color: #1f4f4b;
}

.shg-auswahl-tabelle tbody tr:nth-child(even):not(.shg-auswahl-zeile-neu) td {
    background: #f8fcfb;
}

.shg-auswahl-zeile-neu td {
    background: #fff9f5;
    border-bottom: none;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.shg-auswahl-col-nachname {
    min-width: 12rem;
}

.shg-auswahl-col-freies {
    min-width: 14rem;
}

.shg-auswahl-col-email {
    min-width: 10rem;
}

.shg-auswahl-col-aktion {
    width: 2.5rem;
}

.shg-auswahl-input {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25;
    color: #1f4f4b;
    background: #fff;
    border: 1px solid #c5e3e0;
    border-radius: 6px;
    box-shadow: none;
}

.shg-auswahl-input:focus {
    outline: none;
    border-color: #e95d0f;
    box-shadow: 0 0 0 2px rgb(233 93 15 / 0.15);
}

.shg-auswahl-input:disabled {
    background: #f3f7f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.shg-nachname-combobox {
    position: relative;
}

.shg-nachname-combobox-control {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.shg-nachname-combobox-input {
    flex: 1 1 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.shg-nachname-combobox-input:focus {
    z-index: 1;
    position: relative;
}

.shg-nachname-combobox-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    padding: 0;
    color: #1f4f4b;
    background: #e8f4f3;
    border: 1px solid #c5e3e0;
    border-left: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.shg-nachname-combobox-toggle:hover {
    background: #c5e3e0;
}

.shg-nachname-combobox-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
}

.shg-nachname-combobox-input--ok {
    border-color: #4d8f8a;
    background: #f8fcfb;
}

.shg-nachname-combobox-list--floating,
.shg-nachname-combobox-empty--floating {
    position: fixed;
    z-index: 99999;
    right: auto;
}

.shg-nachname-combobox-list {
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    overflow-y: auto;
    max-height: 14rem;
    background: #fff;
    border: 1px solid #c5e3e0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgb(77 143 138 / 0.28);
}

.shg-nachname-combobox-list:not(.shg-nachname-combobox-list--floating) {
    position: absolute;
    z-index: 40;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
}

.shg-nachname-combobox-option {
    display: block;
    width: 100%;
    padding: 0.4rem 0.55rem;
    font-size: 0.875rem;
    text-align: left;
    color: #1f4f4b;
    background: transparent;
    border: none;
    cursor: pointer;
}

.shg-nachname-combobox-option:hover,
.shg-nachname-combobox-option.is-active {
    background: #e8f4f3;
}

.shg-nachname-combobox-empty {
    margin: 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.8125rem;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgb(77 143 138 / 0.28);
}

.shg-nachname-combobox-empty:not(.shg-nachname-combobox-empty--floating) {
    position: absolute;
    z-index: 40;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
}

[x-cloak] {
    display: none !important;
}

.shg-auswahl-email {
    font-size: 0.8125rem;
    color: #4d8f8a;
    word-break: break-all;
}

.shg-auswahl-vorschau {
    color: #4d8f8a;
    font-style: italic;
}

.shg-auswahl-aktion {
    text-align: center;
}

.shg-auswahl-entfernen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    color: #b45309;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.shg-auswahl-entfernen:hover {
    color: #9a3412;
    background: #fff7ed;
}

.shg-auswahl-hinweis {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: #4d8f8a;
}

.shg-auswahl-hinweis kbd {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    font-family: inherit;
    font-size: 0.75rem;
    background: #e8f4f3;
    border: 1px solid #c5e3e0;
    border-radius: 4px;
}
