/**
 * SJ Mass Payment Collection Table - Complete Styles
 * Version: 2.1.0
 * Theme: Blue & Orange Modern Design with Filters, Modal and Note Column
 */

/* Container and Layout */
.sj-mass-container-kzx789 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin: 20px 0;
    max-width: 1400px;
}

/* Header Section */
.sj-mass-header-kzx789 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sj-mass-title-kzx789 {
    color: #1e3a8a;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* Statistics Box */
.sj-mass-stats-kzx789 {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.sj-mass-stat-item-kzx789 {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sj-mass-stat-label-kzx789 {
    color: #6b7280;
    font-size: 13px;
}

.sj-mass-stat-value-kzx789 {
    color: #1e3a8a;
    font-size: 18px;
    font-weight: 700;
}

.sj-mass-stat-unit-kzx789 {
    color: #6b7280;
    font-size: 13px;
}

/* Filter Section */
.sj-mass-filters-kzx789 {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.sj-mass-filter-row-kzx789 {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sj-mass-filter-row-kzx789:last-child {
    margin-bottom: 0;
}

.sj-mass-filter-group-kzx789 {
    flex: 1;
    min-width: 200px;
}

.sj-mass-filter-group-kzx789 label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.sj-mass-filter-input-kzx789,
.sj-mass-filter-select-kzx789 {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sj-mass-filter-input-kzx789:focus,
.sj-mass-filter-select-kzx789:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sj-mass-filter-actions-kzx789 {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sj-mass-btn-filter-kzx789,
.sj-mass-btn-reset-kzx789,
.sj-mass-btn-print-kzx789 {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sj-mass-btn-filter-kzx789 {
    background: #3b82f6;
    color: white;
}

.sj-mass-btn-filter-kzx789:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.sj-mass-btn-reset-kzx789 {
    background: #f97316;
    color: white;
}

.sj-mass-btn-reset-kzx789:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.2);
}

.sj-mass-btn-print-kzx789 {
    background: #10b981;
    color: white;
}

.sj-mass-btn-print-kzx789:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

/* Loading State */
.sj-mass-loading-kzx789 {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
    gap: 12px;
}

.sj-mass-spinner-kzx789 {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: sj-mass-spin-kzx789 0.8s linear infinite;
}

@keyframes sj-mass-spin-kzx789 {
    to { transform: rotate(360deg); }
}

/* Table Styles */
.sj-mass-table-wrapper-kzx789 {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.sj-mass-table-kzx789 {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.sj-mass-table-kzx789 thead {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
}

.sj-mass-table-kzx789 th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.sj-mass-table-kzx789 td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.sj-mass-table-kzx789 tbody tr:hover {
    background: #f9fafb;
}

/* Cell Specific Styles */
.sj-mass-code-kzx789 {
    font-weight: 600;
    color: #1e3a8a;
}

.sj-mass-name-kzx789 {
    color: #374151;
}

/* Note Cell Styles */
.sj-mass-note-kzx789 {
    max-width: 200px;
}

.sj-mass-note-kzx789 .sj-mass-cell-value-kzx789 {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
    font-style: italic;
}

/* Editable Cells */
.sj-mass-editable-cell-kzx789 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sj-mass-cell-value-kzx789 {
    flex: 1;
}

.sj-mass-edit-btn-kzx789 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
}

.sj-mass-table-kzx789 tbody tr:hover .sj-mass-edit-btn-kzx789 {
    opacity: 1;
}

.sj-mass-edit-btn-kzx789:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.sj-mass-edit-btn-kzx789 .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sj-mass-edit-select-kzx789 {
    padding: 4px 8px;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    font-size: 13px;
}

/* Documents Nested Table */
.sj-mass-docs-table-kzx789 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sj-mass-doc-row-kzx789 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 13px;
}

.sj-mass-doc-number-kzx789 {
    font-weight: 500;
    color: #1e3a8a;
}

.sj-mass-doc-type-kzx789 {
    color: #6b7280;
}

.sj-mass-doc-amount-kzx789 {
    text-align: right;
    font-weight: 600;
    color: #f97316;
}

/* Modal Styles */
.sj-mass-modal-kzx789 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.sj-mass-modal-kzx789.active {
    display: flex;
}

.sj-mass-modal-content-kzx789 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.sj-mass-modal-header-kzx789 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sj-mass-modal-header-kzx789 h3 {
    margin: 0;
    color: #1e3a8a;
    font-size: 20px;
}

.sj-mass-modal-close-kzx789 {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sj-mass-modal-close-kzx789:hover {
    background: #f3f4f6;
    border-radius: 4px;
}

.sj-mass-modal-body-kzx789 {
    padding: 20px;
    overflow-y: auto;
}

.sj-mass-employee-search-kzx789 {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.sj-mass-employee-search-kzx789:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sj-mass-employee-results-kzx789 {
    max-height: 400px;
    overflow-y: auto;
}

.sj-mass-employee-item-kzx789 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sj-mass-employee-item-kzx789:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

.sj-mass-employee-name-kzx789 {
    font-weight: 500;
    color: #374151;
}

.sj-mass-employee-code-kzx789 {
    font-size: 13px;
    color: #6b7280;
}

.sj-mass-no-results-kzx789 {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

/* Note Modal Specific Styles */
.sj-mass-note-textarea-kzx789 {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 150px;
}

.sj-mass-note-textarea-kzx789:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sj-mass-modal-actions-kzx789 {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.sj-mass-btn-save-kzx789,
.sj-mass-btn-cancel-kzx789 {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sj-mass-btn-save-kzx789 {
    background: #10b981;
    color: white;
}

.sj-mass-btn-save-kzx789:hover {
    background: #059669;
    transform: translateY(-1px);
}

.sj-mass-btn-cancel-kzx789 {
    background: #e5e7eb;
    color: #374151;
}

.sj-mass-btn-cancel-kzx789:hover {
    background: #d1d5db;
}

/* Notification Styles */
.sj-mass-notification-kzx789 {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.sj-mass-notification-kzx789.show {
    transform: translateX(0);
}

.sj-mass-notification-kzx789.success {
    background: #10b981;
}

.sj-mass-notification-kzx789.error {
    background: #ef4444;
}

/* Empty States */
.sj-mass-no-data-kzx789,
.sj-mass-error-kzx789 {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
}

.sj-mass-error-kzx789 {
    color: #dc2626;
}

/* Pagination */
.sj-mass-pagination-nav-kzx789 {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.sj-mass-page-btn-kzx789 {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
}

.sj-mass-page-btn-kzx789:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.sj-mass-page-btn-kzx789.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sj-mass-container-kzx789 {
        padding: 16px;
    }
    
    .sj-mass-header-kzx789 {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sj-mass-stats-kzx789 {
        width: 100%;
    }
    
    .sj-mass-stat-item-kzx789 {
        flex: 1;
        min-width: 0;
        padding: 8px 12px;
    }
    
    .sj-mass-stat-value-kzx789 {
        font-size: 16px;
    }
    
    .sj-mass-filter-row-kzx789 {
        flex-direction: column;
    }
    
    .sj-mass-filter-group-kzx789 {
        min-width: 0;
    }
    
    .sj-mass-filter-actions-kzx789 {
        width: 100%;
        justify-content: stretch;
        flex-direction: column;
    }
    
    .sj-mass-btn-filter-kzx789,
    .sj-mass-btn-reset-kzx789,
    .sj-mass-btn-print-kzx789 {
        width: 100%;
        justify-content: center;
    }
    
    .sj-mass-table-kzx789 {
        font-size: 13px;
    }
    
    .sj-mass-table-kzx789 th,
    .sj-mass-table-kzx789 td {
        padding: 12px 8px;
    }
    
    .sj-mass-doc-row-kzx789 {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .sj-mass-doc-amount-kzx789 {
        text-align: left;
    }
    
    .sj-mass-edit-btn-kzx789 {
        opacity: 1;
    }
    
    .sj-mass-editable-cell-kzx789 {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .sj-mass-note-kzx789 {
        max-width: none;
    }
}

/* Accessibility */
.sj-mass-table-kzx789:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .sj-mass-table-kzx789 thead {
        background: #1e293b;
    }
    
    .sj-mass-doc-row-kzx789 {
        border: 1px solid #374151;
    }
    
    .sj-mass-modal-content-kzx789 {
        border: 2px solid #000;
    }
}

/* Print Styles */
@media print {
    .sj-mass-filters-kzx789,
    .sj-mass-pagination-kzx789,
    .sj-mass-edit-btn-kzx789,
    .sj-mass-modal-kzx789 {
        display: none !important;
    }
    
    .sj-mass-container-kzx789 {
        box-shadow: none;
        padding: 0;
    }
    
    .sj-mass-header-kzx789 {
        margin-bottom: 10px;
    }
    
    .sj-mass-stats-kzx789 {
        gap: 12px;
    }
    
    .sj-mass-stat-item-kzx789 {
        padding: 8px 12px;
        background: none !important;
        border: 1px solid #ddd;
    }
}