/* Event Orders filters */
.event-orders-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.event-orders-filter-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.event-orders-filter-select:focus {
    border-color: #B71C1C;
}

.event-orders-search {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.event-orders-search:focus {
    border-color: #B71C1C;
}

.event-orders-search::placeholder {
    color: #aaa;
}

/* Summary bar */
.event-orders-summary {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

/* Source badge */
.event-order-source-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.source-pos {
    background: #dbeafe;
    color: #1d4ed8;
}

.source-oa {
    background: #fef3c7;
    color: #92400e;
}

/* Location label */
.event-order-location {
    font-size: 0.8rem;
    color: #888;
}

/* Status */
.event-order-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: capitalize;
}

/* Totals breakdown in expanded view */
.event-order-totals {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.event-order-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #666;
}

.event-order-total-row.total {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.25rem;
}

/* Location groups */
.event-orders-location-group {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.event-orders-location-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.event-orders-location-header:hover {
    background: #f9fafb;
}

.event-orders-location-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-orders-chevron {
    width: 1rem;
    height: 1rem;
    color: #999;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.event-orders-chevron.open {
    transform: rotate(90deg);
}

.event-orders-location-name {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
}

.event-orders-location-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.event-orders-location-count {
    font-size: 0.85rem;
    color: #888;
}

.event-orders-location-total {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
}

.event-orders-location-body {
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem;
    background: #f7f7f8;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.event-orders-location-body .history-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: none;
}

.event-orders-location-body .history-card-header {
    background: #fff;
    border-radius: 0.5rem;
}

.event-orders-location-body .history-card-detail {
    background: #fff;
}

@media (max-width: 600px) {
    .event-orders-filters {
        flex-direction: column;
    }

    .event-orders-search {
        min-width: unset;
    }
}

.event-orders-paginators {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

.event-orders-paginator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.event-orders-paginator-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.05em;
    min-width: 5rem;
}

.event-orders-paginator-btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: background 0.15s;
}

.event-orders-paginator-btn:hover:not(:disabled) {
    background: #f5f5f5;
}

.event-orders-paginator-btn:disabled {
    color: #bbb;
    cursor: not-allowed;
    background: #fafafa;
}

.event-orders-paginator-status {
    font-size: 0.875rem;
    color: #555;
}

.event-orders-paginator-count {
    color: #888;
    margin-left: 0.25rem;
}
