/* POS Orders Workspace Styles */

.pos-orders-workspace {
    padding: 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
}

/* Workspace Header */
.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.last-refreshed {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Tab Title with Badge */
.tab-title-with-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tab Placeholder */
.tab-placeholder {
    padding: 40px;
    text-align: center;
    color: #6c757d;
    background-color: white;
    border-radius: 8px;
    margin-top: 20px;
}

/* Active Orders Tab */
.active-orders-tab {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Filter Bar */
.pos-filter-bar {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-item {
    flex: 0 0 auto;
}

.filter-search {
    flex: 1 1 300px;
    min-width: 200px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* Grid Styles */
.pos-orders-grid {
    margin-top: 20px;
}

.order-flags {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.empty-grid-message {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

/* Row Highlighting */
.rz-datatable-data tr.order-rush {
    border-left: 4px solid #dc3545;
}

.rz-datatable-data tr.order-has-allergies {
    background-color: #fff3cd;
}

.rz-datatable-data tr.order-has-notes {
    border-left: 4px solid #17a2b8;
}

/* Selected Order Info */
.selected-order-info {
    margin-top: 15px;
    padding: 12px;
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
}

/* Empty State */
.pos-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state-message p {
    margin: 0;
    font-size: 16px;
    color: #6c757d;
}

/* Error Banner */
.pos-error-banner {
    margin-bottom: 20px;
}

.error-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-actions {
    flex-shrink: 0;
}

/* Loading Overlay */
.pos-loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-text {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item,
    .filter-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .filter-actions {
        margin-left: 0;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .workspace-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
