/* Live Orders / Live Bills Styles */
.live-bills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.live-bill-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.live-bill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.live-bill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-bill-header h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--white);
}

.live-bill-meta {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.live-bill-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--orange);
}

.live-bill-body {
    margin-bottom: 1rem;
}

.live-bill-items,
.live-bill-id {
    margin: 0.25rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.live-bill-id {
    font-family: monospace;
    font-size: 0.85rem;
}

.live-bill-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.live-bill-actions button {
    flex: 1;
}

.search-bar-container {
    position: relative;
}

.live-billing-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 0.95rem;
}

.live-billing-search:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.08);
}

.search-bar-container .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-state small {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments for live orders */
@media (max-width: 768px) {
    .live-bills-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .live-bill-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .live-bill-total {
        font-size: 1.5rem;
    }
}

/* Live Orders Split View - SCOPED TO LIVE BILLING SECTION ONLY */
#live-billing-section .live-orders-split-view {
    display: flex !important;
    /* Override the grid display from .live-bills-list */
    grid-template-columns: unset !important;
    gap: 1.5rem;
    height: calc(100vh - 220px);
    margin-top: 1.5rem;
}

#live-billing-section .split-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 320px;
}

#live-billing-section .split-column.qr-orders-column {
    background: linear-gradient(180deg, rgba(255, 122, 24, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border-top: 2px solid var(--orange);
}

#live-billing-section .split-column.counter-orders-column {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

#live-billing-section .split-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#live-billing-section .split-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#live-billing-section .order-count {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

#live-billing-section .qr-orders-column .order-count {
    background: var(--orange);
}

#live-billing-section .orders-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    overflow-y: auto;
    padding: 1rem 0.5rem 1rem 0;
}

#live-billing-section .orders-container::-webkit-scrollbar {
    width: 6px;
}

#live-billing-section .orders-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

#live-billing-section .orders-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#live-billing-section .split-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0;
}

#live-billing-section .split-column .live-bill-card {
    width: 100%;
}

@media (max-width: 900px) {
    #live-billing-section .live-orders-split-view {
        flex-direction: column;
        height: auto;
    }

    #live-billing-section .split-divider {
        width: 100%;
        height: 1px;
        margin: 1rem 0;
    }
}