/* Raumliste — Verwaltung und Sortierung */
.rl-wrap {
    max-width: 42rem;
}

.rl-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rl-section h4 {
    font-size: 0.95rem;
    color: #555;
}

.rl-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    transition: background 0.15s, box-shadow 0.15s;
}

.rl-row.inactive {
    opacity: 0.65;
    background: #f8f8f8;
}

.rl-row.dragging {
    opacity: 0.5;
}

.rl-row.drag-over {
    box-shadow: inset 0 0 0 2px var(--accent-color, #007bff);
    background: #f0f7ff;
}

.rl-grip {
    color: #aaa;
    cursor: grab;
    padding: 0 0.1rem;
    font-size: 0.85rem;
}

.rl-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.45rem;
    overflow: hidden;
}

.rl-room-id {
    display: inline-flex;
    align-items: baseline;
    gap: 0.12rem;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.rl-source-mark {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    min-width: 0.65rem;
    color: #8a939c;
}

.rl-source-timetable {
    color: #6b7580;
}

.rl-source-manual {
    color: #7a8fa8;
}

.rl-room-code {
    font-size: 0.95rem;
}

.rl-room-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10rem;
}

.rl-row-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.2rem;
}

.rl-feature-chips {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
}

.rl-feature-chip {
    font-size: 0.72rem;
    padding: 0.05rem 0.32rem;
    border-radius: 3px;
    background: #eef2f6;
    color: #445;
    white-space: nowrap;
}

/* Features modal */
.modal-content.rl-features-modal {
    max-width: 360px !important;
    width: 92% !important;
}

.rl-features-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.rl-features-room {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color, #222);
    padding-bottom: 0.15rem;
}

.rl-choice-box {
    margin: 0;
    padding: 0.65rem 0.75rem 0.55rem;
    border: 1px solid #cfd6de;
    border-radius: 8px;
    background: #fafbfc;
    min-width: 0;
}

.rl-choice-box legend {
    padding: 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.rl-choice-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rl-choice-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0.1rem;
    font-size: 0.95rem;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}

.rl-choice-row input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--accent, #3498db);
}

.rl-choice-row span {
    flex: 1;
    min-width: 0;
}

.rl-choice-clear span {
    color: #777;
    font-style: italic;
}

.rl-features-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.rl-row-actions .rl-delete {
    color: #b42318;
    border-color: #f0c2bd;
}

.rl-row-actions .rl-delete:hover {
    background: #fef3f2;
}
