/* ===================================
   REPORTS CSS - GradingLine System
   =================================== */

/* ===================================
   ENHANCED PRINT STYLES FOR RECEIPTS
   =================================== */

.receipt-details, .party-details {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 10px;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-weight: 600;
    color: #34495e;
    min-width: 120px;
    margin: 0;
}

.info-row .value {
    font-weight: 500;
    color: #2c3e50;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

/* Enhanced Table Styles */
.table-report {
    border: 2px solid #34495e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-report thead th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 12px 8px;
    border: 1px solid #2c3e50;
}

.table-report tbody td {
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

.table-report tfoot th {
    background: #ecf0f1;
    font-weight: 600;
    color: #2c3e50;
    padding: 12px 8px;
    border: 1px solid #bdc3c7;
}

/* Enhanced Card Styles */
.card {
    border: 2px solid #34495e;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-bottom: 2px solid #2980b9;
    padding: 12px 20px;
}

.card-title {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Summary Card Enhancements */
.summary-card {
    border: 2px solid #27ae60;
    background: #f8fff9;
}

.summary-card .card-header {
    background: linear-gradient(135deg, #27ae60, #229954);
    border-bottom: 2px solid #229954;
}

/* Payment Info Enhancements */
.text-success {
    color: #27ae60 !important;
    font-weight: 600;
}

.text-warning {
    color: #f39c12 !important;
    font-weight: 600;
}

/* Print-specific styles using AdminLTE utilities */
@media print {
    /* AdminLTE Print Utilities */
    .no-print { 
        display: none !important; 
    }
    
    .print-only { 
        display: block !important; 
    }
    
    .page-break { 
        page-break-before: always; 
    }
    
    .page-break-after { 
        page-break-after: always; 
    }
    
    /* Body and Container */
    body { 
        margin: 0 !important; 
        padding: 0 !important; 
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #000 !important;
        background: white !important;
    }
    
    .report-container { 
        margin: 0 !important; 
        padding: 15px !important; 
        max-width: none !important;
        width: 100% !important;
    }
    
    /* Header and Footer */
    .report-header { 
        position: fixed !important; 
        top: 0 !important; 
        left: 0 !important; 
        right: 0 !important; 
        background: white !important; 
        z-index: 1000 !important;
        border-bottom: 2px solid #000 !important;
        padding: 10px 15px !important;
        margin: 0 !important;
    }
    
    .report-footer { 
        position: fixed !important; 
        bottom: 0 !important; 
        left: 0 !important; 
        right: 0 !important; 
        background: white !important; 
        z-index: 1000 !important;
        border-top: 1px solid #000 !important;
        padding: 10px 15px !important;
        margin: 0 !important;
        font-size: 10px !important;
    }
    
    .report-content { 
        margin-top: 100px !important; 
        margin-bottom: 50px !important; 
        padding: 0 !important;
    }
    
    /* Company Header Print Styles */
    .company-name {
        font-size: 18px !important;
        font-weight: bold !important;
        color: #000 !important;
        margin: 0 !important;
    }
    
    .company-details {
        font-size: 10px !important;
        color: #000 !important;
        line-height: 1.2 !important;
    }
    
    .company-logo {
        max-height: 40px !important;
        max-width: 40px !important;
    }
    
    /* Report Title */
    .report-title {
        font-size: 16px !important;
        font-weight: bold !important;
        color: #000 !important;
        text-align: center !important;
        margin: 10px 0 !important;
        text-transform: uppercase !important;
    }
    
    /* Enhanced Print Optimizations for Receipts */
    .receipt-details, .party-details {
        background: white !important;
        border: 1px solid #000 !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .section-title {
        color: #000 !important;
        font-weight: bold !important;
        font-size: 12px !important;
        margin-bottom: 10px !important;
        padding-bottom: 5px !important;
        border-bottom: 1px solid #000 !important;
        text-transform: uppercase !important;
    }
    
    .info-row {
        border-bottom: 1px solid #000 !important;
        padding: 5px 0 !important;
        display: flex !important;
        justify-content: space-between !important;
    }
    
    .info-row label {
        font-weight: bold !important;
        color: #000 !important;
        min-width: 100px !important;
        margin: 0 !important;
    }
    
    .info-row .value {
        font-weight: normal !important;
        color: #000 !important;
        text-align: right !important;
        flex: 1 !important;
        margin-left: 10px !important;
    }
    
    /* Table Print Styles */
    .table-report {
        border: 1px solid #000 !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .table-report thead th {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #000 !important;
        padding: 8px 5px !important;
        font-weight: bold !important;
        text-align: center !important;
        font-size: 11px !important;
    }
    
    .table-report tbody td {
        border: 1px solid #000 !important;
        padding: 6px 5px !important;
        font-size: 11px !important;
        vertical-align: middle !important;
    }
    
    .table-report tfoot th {
        background: #f0f0f0 !important;
        border: 1px solid #000 !important;
        padding: 8px 5px !important;
        font-weight: bold !important;
        color: #000 !important;
    }
    
    /* Card Print Styles */
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        margin-bottom: 15px !important;
        background: white !important;
    }
    
    .card-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        border-bottom: 1px solid #000 !important;
        padding: 8px 15px !important;
    }
    
    .card-title {
        margin: 0 !important;
        font-weight: bold !important;
        font-size: 12px !important;
        text-transform: uppercase !important;
        color: #000 !important;
    }
    
    .card-body {
        padding: 10px 15px !important;
    }
    
    /* Summary Card Print Styles */
    .summary-card {
        border: 1px solid #000 !important;
        background: white !important;
    }
    
    .summary-card .card-header {
        background: #f0f0f0 !important;
        border-bottom: 1px solid #000 !important;
    }
    
    /* Payment Info Print Styles */
    .text-success {
        color: #000 !important;
        font-weight: bold !important;
    }
    
    .text-warning {
        color: #000 !important;
        font-weight: bold !important;
    }
    
    /* Force all text to black for print */
    * { 
        color: #000 !important; 
    }
    
    /* Remove all shadows and gradients */
    .card, .table-report th, .report-info { 
        box-shadow: none !important; 
        text-shadow: none !important; 
    }
    
    /* Ensure proper page breaks */
    .card, .table-report {
        page-break-inside: avoid;
    }
}

/* Screen styles using AdminLTE */
@media screen {
    .report-container { 
        margin: 20px; 
        background: white;
        border-radius: 0.25rem;
        box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    }
    
    .report-header { 
        border-bottom: 2px solid #007bff; 
        margin-bottom: 20px; 
        padding: 15px 0;
    }
    
    .report-footer { 
        border-top: 1px solid #dee2e6; 
        margin-top: 20px; 
        padding-top: 10px; 
    }
    
    /* AdminLTE Card Enhancements */
    .card {
        box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
        border: 0 solid rgba(0,0,0,.125);
    }
    
    .card-header {
        background-color: rgba(0,0,0,.03);
        border-bottom: 0 solid rgba(0,0,0,.125);
    }
    
    /* AdminLTE Table Enhancements */
    .table-report {
        border: 1px solid #dee2e6;
    }
    
    .table-report thead th {
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }
}

/* ===================================
   COMPANY HEADER STYLES
   =================================== */

.company-logo {
    max-height: 60px;
    max-width: 60px;
    object-fit: contain;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.company-details {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* ===================================
   REPORT TITLE STYLES
   =================================== */

.report-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.report-subtitle {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
}

/* ===================================
   REPORT INFO SECTION
   =================================== */

.report-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
}

.report-info .row > div {
    margin-bottom: 5px;
}

.report-info label {
    font-weight: bold;
    color: #495057;
    margin: 0;
}

.report-info span {
    color: #6c757d;
}

/* ===================================
   REPORT TABLE STYLES
   =================================== */

.table-report {
    font-size: 12px;
}

.table-report th {
    background: #007bff;
    color: white;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    padding: 8px 4px;
}

.table-report td {
    padding: 6px 4px;
    vertical-align: middle;
}

.table-report tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

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

/* ===================================
   UTILITY CLASSES
   =================================== */

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

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

.text-bold { 
    font-weight: bold; 
}

.amount-positive { 
    color: #28a745; 
}

.amount-negative { 
    color: #dc3545; 
}

/* ===================================
   BUTTON STYLES
   =================================== */

.print-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.export-buttons {
    margin-bottom: 20px;
}

.export-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* ===================================
   LOADING AND MESSAGE STYLES
   =================================== */

.loading-spinner {
    text-align: center;
    padding: 40px 0;
}

.no-data-message {
    text-align: center;
    color: #6c757d;
    padding: 40px 0;
}

.no-data-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===================================
   SUMMARY CARD STYLES
   =================================== */

.summary-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 20px;
}

.summary-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 15px;
}

.summary-card .card-header h6 {
    margin: 0;
    font-weight: bold;
    color: #495057;
}

.summary-card .card-body {
    padding: 15px;
}

.summary-card .table-sm td {
    padding: 5px 10px;
    border-top: none;
}

/* ===================================
   FILTER SECTION STYLES
   =================================== */

.filter-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 20px;
}

.filter-section .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 15px;
}

.filter-section .card-header h5 {
    margin: 0;
    font-weight: bold;
    color: #495057;
}

.filter-section .card-body {
    padding: 20px;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 768px) {
    .report-container {
        margin: 10px;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .report-title {
        font-size: 16px;
    }
    
    .table-report {
        font-size: 10px;
    }
    
    .table-report th,
    .table-report td {
        padding: 4px 2px;
    }
    
    .export-buttons .btn {
        margin-right: 5px;
        margin-bottom: 5px;
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    .report-header .row > div {
        margin-bottom: 10px;
    }
    
    .company-logo {
        max-height: 40px;
        max-width: 40px;
    }
    
    .company-name {
        font-size: 16px;
    }
    
    .company-details {
        font-size: 10px;
    }
}

/* ===================================
   DARK MODE SUPPORT (Future)
   =================================== */

@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .table-report tbody tr:hover {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .table-report th {
        background: #000;
        color: #fff;
    }
    
    .amount-positive {
        color: #000;
        font-weight: bold;
    }
    
    .amount-negative {
        color: #000;
        font-weight: bold;
    }
} 