/* === Group-specific styles === */

.event-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* === Compact multi-event group (inline container) === */
.event-group-compact {
    background: #fff;
    border: 2px solid #a9cae9;
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 200px;
}

.event-group-compact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.event-group-compact-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #253848;
}

.event-group-compact-meta {
    font-size: 0.8rem;
    color: #888;
}

.event-group-compact-cards {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.event-card-mini {
    min-width: auto !important;
    padding: 4px 10px !important;
    font-size: 0.8rem !important;
    display: flex;
    align-items: center;
    gap: 8px;
    border-width: 1px !important;
}

.event-card-mini .event-type {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0;
}

.event-card-mini .guest-count {
    font-size: 0.8rem;
    margin-top: 0;
    font-weight: 600;
}

/* === Souhrnně button === */
.btn-group-view {
    padding: 4px 10px;
    border: 1px solid #253848;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    background: #253848;
    color: #fff;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-group-view:hover {
    background: #a9cae9;
    color: #253848;
    border-color: #a9cae9;
}

.btn-group-view.active {
    background: #a9cae9;
    color: #253848;
    border-color: #a9cae9;
}

/* === View Mode Tabs === */
.view-mode-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    margin-bottom: 0;
}

.view-mode-tab {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f0f0f0;
    color: #666;
    transition: all 0.15s;
}

.view-mode-tab:hover {
    background: #e8e8e8;
}

.view-mode-tab.active {
    background: #fff;
    color: #253848;
    border-color: #253848;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    z-index: 1;
}

/* === Combined Summary Bar === */
.combined-summary {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px 24px;
    margin: 0 24px 16px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.combined-summary .summary-title {
    font-weight: 700;
    font-size: 1rem;
    color: #253848;
}

.combined-summary .summary-item {
    font-size: 0.9rem;
    color: #555;
}

.combined-summary .summary-item strong {
    color: #253848;
}

/* === Combined Attendees === */
.combined-attendees {
    padding: 0 24px 24px;
}

.combined-attendees h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* === Event type badges (product code based: AM, AW, AC, TE, AN...) === */
.event-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #253848;
}

.event-type-badge.type-am { background: #2c7a4b; }
.event-type-badge.type-aw { background: #8b3a62; }
.event-type-badge.type-ac { background: #6b4423; }
.event-type-badge.type-an { background: #5b2d8e; }
.event-type-badge.type-ab { background: #c17b2a; }
.event-type-badge.type-ae { background: #1a5276; }
.event-type-badge.type-te { background: #2c3e50; }

/* === Seat event badge (small label inside seat in combined view) === */
.seat-event-badge {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: #253848;
    flex-shrink: 0;
    line-height: 1.2;
}

.seat-event-badge.type-am { background: #2c7a4b; }
.seat-event-badge.type-aw { background: #8b3a62; }
.seat-event-badge.type-ac { background: #6b4423; }
.seat-event-badge.type-an { background: #5b2d8e; }
.seat-event-badge.type-ab { background: #c17b2a; }
.seat-event-badge.type-ae { background: #1a5276; }
.seat-event-badge.type-te { background: #2c3e50; }

/* === Responsive === */
@media (max-width: 768px) {
    .event-group-compact {
        min-width: 100%;
    }

    .combined-summary {
        margin: 0 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .combined-attendees {
        padding: 0 12px 24px;
    }

    .view-mode-tabs {
        padding: 0 12px;
        overflow-x: auto;
    }

    .view-mode-tab {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

/* === Print === */
@media print {
    .combined-summary {
        margin: 0 0 8px;
        border: 1px solid #333;
    }

    .combined-attendees {
        padding: 0;
    }
}
