/* Sales History Page Styles - Using sales-container from sales.css */

/* Statistics Grid */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Data Grid */
.rz-datagrid {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.rz-datagrid-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2d4a7c 100%);
    color: white;
    font-weight: 600;
}

.rz-datagrid-row {
    transition: all 0.2s ease;
}

.rz-datagrid-row:hover {
    background: #f8fafc;
    transform: translateX(2px);
}

.rz-datagrid-cell {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Buttons */
.rz-button {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.rz-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cards */
.rz-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

/* Form Elements */
.rz-textbox, .rz-datepicker {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.rz-textbox:focus, .rz-datepicker:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

/* Badges */
.rz-badge {
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sales-history-container {
        padding: 1rem;
    }
    
    .page-header {
        padding: 1.5rem;
    }
    
    .statistics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1rem;
    }
    
    .rz-stack {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .rz-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Loading States */
.rz-progressbar-circular {
    color: #1e3c72;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state .rz-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sales-history-container > * {
    animation: fadeIn 0.6s ease-out;
}

/* Custom Scrollbar */
.rz-datagrid-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.rz-datagrid-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.rz-datagrid-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.rz-datagrid-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
