/**
 * Styling for Report Module
 * Ayula Store
 */

.card-stats {
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    margin-right: 15px;
}

.stat-widget-three {
    padding: 15px;
}

.stat-widget-three .order-summary-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.stat-widget-three .order-summary-content span {
    font-size: 14px;
    color: #6c757d;
}

.report-filter-card {
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.report-filter-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.report-filter-card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.report-filter-card .form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.report-filter-card .form-control {
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid #ddd;
}

.report-filter-card .input-group-text {
    background-color: #f0f3f5;
    border: 1px solid #ddd;
}

.table th {
    background-color: #5682d6 !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    padding: 12px 15px;
    border: none !important;
}

.table td {
    vertical-align: middle;
    padding: 12px 15px;
    border-color: #f0f0f0;
    font-size: 14px;
}

.table tbody tr:hover {
    background-color: #f9fafc;
}

.receipt-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #eee;
}

.receipt-thumbnail:hover {
    transform: scale(1.1);
    border-color: #5682d6;
}

#receipt-modal .modal-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    border: 1px solid #eee;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 30px;
}

.filter-btn {
    margin-top: 32px;
    height: 44px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.print-export-btn {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.print-export-btn i {
    margin-right: 5px;
}

.daterangepicker {
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
}

.daterangepicker .ranges li.active {
    background-color: #5682d6;
}

.daterangepicker td.active, 
.daterangepicker td.active:hover {
    background-color: #5682d6;
}

.productimgname {
    display: flex;
    align-items: center;
}

.productimgname .product-img {
    width: 40px;
    height: 40px;
    overflow: hidden;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.productimgname .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.productimgname a {
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.productimgname a:hover {
    color: #5682d6;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f9f9f9;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}

.select2-container--default .select2-selection--single {
    height: 40px;
    border-radius: 6px;
    border-color: #ddd;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

/* Animation for loading elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

/* Print styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    #print-template, #print-template * {
        visibility: visible;
    }
    
    #print-template {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}