/**
 * استایل فرانت‌اند گزارش مشتری
 * فایل: employee-task-manager/assets/public.css
 */

.etm-report-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
}

.etm-report-header {
    border-bottom: 2px solid #2271b1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.etm-report-header h2 {
    margin: 0 0 8px 0;
    color: #2271b1;
    font-size: 20px;
}

.etm-report-period {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.etm-date-range {
    color: #999;
    font-size: 12px;
    margin-right: 8px;
}

.etm-report-empty {
    padding: 40px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

.etm-report-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.etm-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.etm-report-table th {
    background: #2271b1;
    color: #fff;
    padding: 12px 15px;
    text-align: right;
    font-weight: 600;
}

.etm-report-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.etm-report-table tbody tr:hover {
    background: #f9f9f9;
}

.etm-report-table .etm-quantity {
    text-align: center;
    font-weight: 600;
    color: #2271b1;
    min-width: 60px;
}

.etm-report-table tfoot {
    background: #f1f1f1;
    font-weight: bold;
}

.etm-report-table .etm-total {
    color: #dc3545;
    font-size: 16px;
}

.etm-hide-mobile {
    display: table-cell;
}

.etm-report-actions {
    text-align: left;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.etm-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.etm-btn:hover {
    background: #005a87;
}

.etm-btn-print {
    background: #46b450;
}

.etm-btn-print:hover {
    background: #369440;
}

.etm-message {
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.etm-message.etm-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* موبایل */
@media (max-width: 600px) {
    .etm-report-wrapper {
        padding: 15px;
        margin: 15px;
    }
    
    .etm-hide-mobile {
        display: none;
    }
    
    .etm-report-table th,
    .etm-report-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .etm-report-header h2 {
        font-size: 18px;
    }
}

/* پرینت */
@media print {
    body * {
        visibility: hidden;
    }
    
    .etm-report-wrapper,
    .etm-report-wrapper * {
        visibility: visible;
    }
    
    .etm-report-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    
    .etm-report-actions {
        display: none;
    }
    
    .etm-report-table {
        border: 1px solid #000;
    }
    
    .etm-report-table th {
        background: #f1f1f1 !important;
        color: #000;
        -webkit-print-color-adjust: exact;
    }
}