/** * HVAC Master Pending Approvals Styles * * Styling for the pending approvals management interface */ /* Page Layout */ .hvac-master-pending-approvals-page { background: #f8f9fa; min-height: 100vh; padding: 20px 0; } .hvac-pending-approvals-wrapper { max-width: 1400px; margin: 0 auto; background: #ffffff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); overflow: hidden; } /* Page Header */ .hvac-page-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #ffffff; padding: 30px; text-align: center; } .hvac-page-header h1 { margin: 0 0 10px 0; font-size: 2.2rem; font-weight: 600; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .hvac-page-description { margin: 0; font-size: 1.1rem; opacity: 0.9; } /* Filters Section */ .hvac-filters-section { background: #f8f9fa; border-bottom: 1px solid #e9ecef; padding: 20px 30px; } .hvac-filters-form { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; } .hvac-filter-group { display: flex; flex-direction: column; min-width: 150px; } .hvac-filter-group label { font-weight: 600; margin-bottom: 5px; color: #495057; font-size: 0.9rem; } .hvac-filter-group input, .hvac-filter-group select { padding: 8px 12px; border: 1px solid #ced4da; border-radius: 4px; font-size: 0.9rem; background: #ffffff; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } .hvac-filter-group input:focus, .hvac-filter-group select:focus { border-color: #80bdff; outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .hvac-filter-actions { display: flex; gap: 10px; align-items: center; } /* Bulk Actions */ .hvac-bulk-actions { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background: #ffffff; border-bottom: 1px solid #e9ecef; } .hvac-bulk-select { display: flex; align-items: center; gap: 8px; } .hvac-bulk-select input[type="checkbox"] { margin: 0; transform: scale(1.1); } .hvac-bulk-select label { font-weight: 600; margin: 0; cursor: pointer; color: #495057; } .hvac-bulk-buttons { display: flex; gap: 10px; } /* Results Summary */ .hvac-results-summary { padding: 15px 30px; background: #ffffff; border-bottom: 1px solid #e9ecef; } .hvac-results-summary p { margin: 0; color: #6c757d; font-size: 0.9rem; } /* Table Styles */ .hvac-trainers-table-wrapper { padding: 0; overflow-x: auto; } .hvac-trainers-table { width: 100%; border-collapse: collapse; background: #ffffff; } .hvac-trainers-table th, .hvac-trainers-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e9ecef; vertical-align: middle; } .hvac-trainers-table th { background: #f8f9fa; font-weight: 600; color: #495057; position: sticky; top: 0; z-index: 10; } .hvac-trainers-table tbody tr:hover { background: #f8f9fa; } .hvac-trainers-table tbody tr.hvac-row-updated { background: #d4edda !important; transition: background-color 0.3s ease; } /* Table Columns */ .hvac-col-select { width: 40px; text-align: center; } .hvac-col-date { width: 120px; } .hvac-col-name { width: 200px; } .hvac-col-email { width: 220px; } .hvac-col-location { width: 180px; } .hvac-col-status { width: 120px; } .hvac-col-actions { width: 180px; text-align: center; } /* Trainer Name Button */ .hvac-trainer-name-btn { background: none; border: none; color: #007bff; text-decoration: underline; cursor: pointer; font-size: inherit; font-family: inherit; padding: 0; text-align: left; } .hvac-trainer-name-btn:hover { color: #0056b3; } /* Status Badges */ .hvac-status-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .hvac-status-pending { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; } .hvac-status-approved { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .hvac-status-active { background: #d1ecf1; color: #0c5460; border: 1px solid #b8daff; } .hvac-status-inactive { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .hvac-status-rejected { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } /* Buttons */ .hvac-btn { display: inline-block; padding: 8px 16px; font-size: 0.9rem; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; border: 1px solid transparent; border-radius: 4px; transition: all 0.15s ease-in-out; background-image: none; } .hvac-btn:focus, .hvac-btn:hover { text-decoration: none; } .hvac-btn:disabled { opacity: 0.6; cursor: not-allowed; } .hvac-btn-primary { color: #ffffff; background-color: #007bff; border-color: #007bff; } .hvac-btn-primary:hover:not(:disabled) { background-color: #0056b3; border-color: #004085; } .hvac-btn-secondary { color: #6c757d; background-color: #ffffff; border-color: #6c757d; } .hvac-btn-secondary:hover:not(:disabled) { color: #ffffff; background-color: #6c757d; border-color: #6c757d; } .hvac-btn-success { color: #ffffff; background-color: #28a745; border-color: #28a745; } .hvac-btn-success:hover:not(:disabled) { background-color: #1e7e34; border-color: #1c7430; } .hvac-btn-danger { color: #ffffff; background-color: #dc3545; border-color: #dc3545; } .hvac-btn-danger:hover:not(:disabled) { background-color: #bd2130; border-color: #b21f2d; } .hvac-btn-sm { padding: 6px 12px; font-size: 0.8rem; } /* No Results */ .hvac-no-results { text-align: center; padding: 60px 30px; color: #6c757d; } .hvac-no-results p { margin: 0; font-size: 1.1rem; } /* Pagination */ .hvac-pagination { display: flex; justify-content: center; gap: 5px; padding: 20px 30px; background: #f8f9fa; border-top: 1px solid #e9ecef; } .hvac-page-link { display: block; padding: 8px 12px; margin-left: -1px; line-height: 1.25; color: #007bff; text-decoration: none; background-color: #ffffff; border: 1px solid #dee2e6; border-radius: 4px; margin-left: 0; margin-right: 5px; } .hvac-page-link:hover { z-index: 2; color: #0056b3; text-decoration: none; background-color: #e9ecef; border-color: #dee2e6; } .hvac-page-link.active { z-index: 3; color: #ffffff; background-color: #007bff; border-color: #007bff; } /* Modals */ .hvac-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 20px; } .hvac-modal-content { background: #ffffff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); max-width: 800px; width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; } .hvac-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; border-bottom: 1px solid #e9ecef; background: #f8f9fa; } .hvac-modal-header h2 { margin: 0; font-size: 1.4rem; color: #495057; } .hvac-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #6c757d; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 4px; } .hvac-modal-close:hover { color: #495057; background: #e9ecef; } .hvac-modal-body { padding: 30px; flex: 1; overflow-y: auto; } .hvac-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 30px; border-top: 1px solid #e9ecef; background: #f8f9fa; } /* Form Groups */ .hvac-form-group { margin-bottom: 20px; } .hvac-form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #495057; } .hvac-form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #ced4da; border-radius: 4px; font-size: 0.9rem; font-family: inherit; resize: vertical; min-height: 80px; } .hvac-form-group textarea:focus { border-color: #80bdff; outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } /* Trainer Details */ .hvac-trainer-details { max-height: 400px; overflow-y: auto; } .hvac-details-section { margin-bottom: 25px; } .hvac-details-section:last-child { margin-bottom: 0; } .hvac-details-section h3 { margin: 0 0 15px 0; font-size: 1.1rem; color: #495057; border-bottom: 2px solid #e9ecef; padding-bottom: 8px; } .hvac-details-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } .hvac-details-table td { padding: 8px 12px; border-bottom: 1px solid #f1f3f4; vertical-align: top; } .hvac-details-table td:first-child { width: 40%; color: #6c757d; font-weight: 500; } .hvac-details-table td:last-child { color: #495057; } .hvac-application-details { background: #f8f9fa; padding: 15px; border-radius: 4px; border-left: 4px solid #007bff; } .hvac-approval-log { background: #f8f9fa; padding: 15px; border-radius: 4px; max-height: 200px; overflow-y: auto; } .hvac-log-entry { background: #ffffff; padding: 10px; border-radius: 4px; margin-bottom: 10px; border-left: 3px solid #007bff; font-size: 0.9rem; } .hvac-log-entry:last-child { margin-bottom: 0; } /* Flash Messages */ .hvac-flash-message { padding: 12px 20px; margin-bottom: 20px; border-radius: 4px; font-weight: 500; } .hvac-flash-success { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; } .hvac-flash-error { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; } /* Loading Overlay */ #hvac-loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); z-index: 9999; display: flex; align-items: center; justify-content: center; } .hvac-loading-spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #007bff; border-radius: 50%; animation: hvac-spin 1s linear infinite; } @keyframes hvac-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Modal Body Restrictions */ body.hvac-modal-open { overflow: hidden; } /* Status Text */ .hvac-status-text { font-weight: 500; color: #6c757d; font-style: italic; } /* Responsive Design */ @media (max-width: 1200px) { .hvac-pending-approvals-wrapper { margin: 0 20px; } } @media (max-width: 768px) { .hvac-page-header { padding: 20px; } .hvac-page-header h1 { font-size: 1.8rem; } .hvac-filters-form { flex-direction: column; gap: 15px; } .hvac-filter-group { min-width: auto; } .hvac-filter-actions { flex-direction: column; align-items: stretch; } .hvac-bulk-actions { flex-direction: column; gap: 15px; align-items: stretch; } .hvac-trainers-table-wrapper { font-size: 0.8rem; } .hvac-trainers-table th, .hvac-trainers-table td { padding: 8px 6px; } .hvac-modal { padding: 10px; } .hvac-modal-header, .hvac-modal-body, .hvac-modal-footer { padding: 15px 20px; } .hvac-pagination { flex-wrap: wrap; } } @media (max-width: 576px) { .hvac-col-location, .hvac-col-email { display: none; } .hvac-bulk-buttons { flex-direction: column; gap: 8px; } .hvac-btn { font-size: 0.8rem; padding: 6px 12px; } } /* Print Styles */ @media print { .hvac-filters-section, .hvac-bulk-actions, .hvac-pagination, .hvac-col-actions, .hvac-col-select { display: none !important; } .hvac-pending-approvals-wrapper { box-shadow: none; border: 1px solid #000; } .hvac-trainers-table { font-size: 0.8rem; } .hvac-page-header { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; } }