/* Receipts Section Styles */
/* Global body styles now in global.css */

/* Table container and common table styles now in admin-sections-shared.css */

#receipts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#receipts-table th,
#receipts-table td {
    text-align: left;
    vertical-align: top;
}

#receipts-table tbody tr {
    transition: all 0.2s ease;
}

#receipts-table tbody tr.receipt-row:hover {
    background-color: #f8f9fa;
}

#receipts-table tbody tr td {
    border-bottom: 1px solid #e9ecef;
}

/* Amount cell styling */
.amount-cell {
    font-weight: 600;
    color: #2d3748;
}

/* Category badge styling */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}

.category-office_supplies {
    background-color: #e3f2fd;
    color: #1565c0;
}

.category-travel {
    background-color: #fce4ec;
    color: #c2185b;
}

.category-meals {
    background-color: #fff3e0;
    color: #ef6c00;
}

.category-utilities {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.category-software {
    background-color: #ede7f6;
    color: #5e35b1;
}

.category-equipment {
    background-color: #e0f2f1;
    color: #00695c;
}

.category-services {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.category-marketing {
    background-color: #fff8e1;
    color: #f57f17;
}

.category-other, .category-none {
    background-color: #f5f5f5;
    color: #616161;
}

/* Actions column */
.actions-cell {
    white-space: nowrap;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 4px;
    transition: all 0.2s ease;
}

.action-btn.edit {
    color: #007bff;
}

.action-btn.edit:hover {
    background-color: #e7f3ff;
}

.action-btn.delete {
    color: #dc3545;
}

.action-btn.delete:hover {
    background-color: #fdeaea;
}

/* Modal Styles - using global modal styles from global.css */

.receipt-form {
    padding: 0 24px 24px 24px;
}

/* Form row for side-by-side fields */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* File upload styling */
.file-upload-container {
    position: relative;
}

.file-input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-label:hover {
    border-color: #667eea;
    background-color: #f3f4f6;
    color: #667eea;
}

.file-upload-label i {
    font-size: 20px;
}

.image-preview {
    margin-top: 10px;
    text-align: center;
}

.image-preview img {
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 15px;
    }

    .table-container {
        margin-top: 15px;
    }

    #receipts-table th,
    #receipts-table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #495057;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 30px;
}

/* Error state */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

