﻿.tt-search-group {
    border-radius: 8px;
    overflow: hidden;
}

.tt-search-item {
    padding: 10px 12px;
}

.tt-search-icon {
    opacity: 0.75;
}

.tt-search-title {
    font-weight: 600;
    line-height: 1.2;
}

.tt-search-meta {
    margin-top: 2px;
    min-width: 0;
}

.tt-search-sub {
    opacity: 0.75;
    line-height: 1.1;
}

.tt-chip {
    height: 22px;
}

.tt-idchip {
    margin-left: 8px;
}

.tt-search-activator {
    position: relative;
    width: 520px;
    max-width: 60vw;
}

.tt-search-input {
    width: 100%;
}

.tt-search-hint {
    position: absolute;
    right: 10px;
    top: 8px;
    display: flex;
    gap: 6px;
    opacity: 0.75;
}

.tt-key {
    border: 1px solid rgba(0,0,0,.25);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
}


.tt-results {
    width: 560px;
    max-width: 70vw;
    max-height: 60vh;
    overflow: auto;
    border-radius: 10px;
}

.tt-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    background: var(--mud-palette-surface);
    z-index: 1;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.tt-item {
    padding: 10px 12px;
    cursor: pointer;
}

    .tt-item:hover {
        background: rgba(0,0,0,.04);
    }

.tt-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tt-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt-idchip {
    height: 22px;
}

.tt-item-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    opacity: 0.85;
}

.tt-subtext {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 380px;
}

.tt-statechip {
    height: 22px;
}

.tt-item-active {
    background: rgba(0,0,0,.08);
}

.tt-filterbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
}

.tt-results {
    display: flex;
    flex-direction: column;
}

/* Nur dieser Bereich scrollt */
.tt-results-body {
    overflow: auto;
    max-height: 850px; /* anpassen! */
}

/* Footer bleibt sichtbar am unteren Rand des MudPaper */
.tt-results-footer {
    position: sticky;
    bottom: 0;
    background: var(--mud-palette-surface);
    z-index: 10;
}

/* Optional: klare Trennung */
.tt-results-footer {
    box-shadow: 0 -6px 10px -10px rgba(0,0,0,0.35);
}

/* Dein Footer-Layout */
.tt-footer {
    padding: 8px 12px;
}
