:root {
    --primary-color: #4e73df;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --dark-color: #5a5c69;
}

body {
    font-size: 14px;
    line-height: 1.4;
}

.report-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

.report-header {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 2px solid var(--primary-color);
}

.report-header h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.report-header .company-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2px;
}

.report-header .report-meta {
    font-size: 11px;
    color: #858796;
    margin-top: 3px;
}

.filter-section {
    background: #f8f9fc;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.quick-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.quick-filter-btn {
    padding: 6px 12px;
    background: white;
    color: var(--dark-color);
    border: 1px solid #d1d3e2;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s;
}

.quick-filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quick-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
    margin-top: 12px;
}

.custom-dates-row {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
    margin-top: 8px;
}

.custom-dates-row.show {
    display: flex;
}

.filter-group {
    flex: 1;
    min-width: 120px;
}

.filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark-color);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #d1d3e2;
    border-radius: 5px;
    font-size: 12px;
}

/* Select2 customization */
.select2-container--default .select2-selection--single {
    height: 34px;
    border: 1px solid #d1d3e2;
    border-radius: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    padding-left: 8px;
    font-size: 12px;
}

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

.select2-container {
    width: 100% !important;
}

.select2-dropdown {
    font-size: 12px;
}

.btn-filter {
    padding: 7px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    height: 34px;
}

.btn-filter:hover {
    background: #2e59d9;
}

.btn-print {
    padding: 7px 16px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    height: 34px;
}

.btn-print:hover {
    background: #17a673;
}

.btn-export {
    padding: 7px 16px;
    background: #f6c23e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    height: 34px;
}

.btn-export:hover {
    background: #f4b619;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.summary-card {
    background: white;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    padding: 12px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.summary-card h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #858796;
    margin: 0 0 8px 0;
}

.summary-card .amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 20px 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3e6f0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    font-size: 12px;
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
    color: white;
}

.data-table thead th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.data-table tbody td {
    padding: 8px;
    border-bottom: 1px solid #e3e6f0;
}

.data-table tbody tr:hover {
    background: #f8f9fc;
}

.data-table tfoot td {
    padding: 10px 8px;
    font-weight: 700;
    background: #e3e6f0;
    border-top: 2px solid var(--primary-color);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.amount-positive {
    color: var(--success-color);
    font-weight: 600;
}

.amount-negative {
    color: var(--danger-color);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
}

.badge-gst {
    background: #d4edda;
    color: #155724;
}

.badge-non-gst {
    background: #f8d7da;
    color: #721c24;
}

.badge-online {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.text-danger {
    color: #e74a3b !important;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #858796;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .report-container {
        padding: 10px;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .summary-card {
        padding: 8px 10px;
    }
    
    .summary-card h3 {
        font-size: 10px;
    }
    
    .summary-card .amount {
        font-size: 16px;
    }
    
    .data-table {
        font-size: 10px;
        display: block;
        overflow-x: auto;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 6px 4px;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}
