/* ======================================== SOCIETES CREDIT MANAGER - STYLES ======================================== */ /* Actions Header */ .credit-actions-header { margin: 20px 0; } .credit-actions-header .button { display: inline-flex; align-items: center; gap: 5px; } /* Table Styles */ #societes-table { margin-top: 20px; } #societes-table th { font-weight: 600; } #societes-table td { vertical-align: middle; } /* Status Badges */ .badge-active, .badge-inactive { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .badge-active { background-color: #46b450; color: white; } .badge-inactive { background-color: #dc3232; color: white; } /* Action Buttons */ .button-small { padding: 4px 8px; height: auto; font-size: 12px; line-height: 1.5; } .button-link-delete { color: #b32d2e; } .button-link-delete:hover { color: #dc3232; border-color: #dc3232; } /* Modal Styles */ .societe-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999999; display: none; animation: fadeIn 0.3s ease-out; } .societe-modal.show { display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease-out; } .credit-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)); backdrop-filter: blur(5px); animation: fadeIn 0.3s ease-out; } .credit-modal-content { position: relative; background: linear-gradient(145deg, #ffffff, #f8f9fa); margin: 0; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2); padding: 0; transform: scale(0.9); animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; border: 1px solid rgba(255, 255, 255, 0.2); } .credit-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); background: linear-gradient(135deg, #001954 0%, #003580 100%); border-radius: 20px 20px 0 0; position: relative; overflow: hidden; } .credit-modal-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); pointer-events: none; } .credit-modal-header h2 { margin: 0; font-size: 24px; font-weight: 600; color: white; position: relative; z-index: 1; } .credit-modal-close { position: relative; z-index: 1; font-size: 32px; font-weight: 300; color: white; cursor: pointer; line-height: 1; transition: all 0.3s ease; opacity: 0.8; } .credit-modal-close:hover { opacity: 1; transform: rotate(90deg); } /* Form Styles */ .credit-form { padding: 30px; } .form-group-full { margin-bottom: 20px; } .form-group-full label { display: block; font-weight: 600; margin-bottom: 8px; color: #23282d; font-size: 14px; } .form-group-full input[type="text"] { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; transition: all 0.3s ease; } .form-group-full input[type="text"]:focus { outline: none; border-color: #0073aa; box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1); } .form-group-full input[type="checkbox"] { margin-right: 8px; width: 18px; height: 18px; vertical-align: middle; } .required { color: #dc3232; font-weight: 700; } .description { margin-top: 5px; margin-bottom: 0; font-size: 12px; color: #666; font-style: italic; } /* Form Actions */ .form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 20px; border-top: 1px solid #ddd; } .form-actions .button { display: inline-flex; align-items: center; gap: 5px; padding: 10px 20px; font-size: 14px; } .form-actions .button-primary { background: linear-gradient(135deg, #0073aa 0%, #005a87 100%); border: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } .form-actions .button-primary:hover { background: linear-gradient(135deg, #005a87 0%, #004466 100%); } /* Animations */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes modalSlideIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } } /* Responsive */ @media (max-width: 768px) { .credit-modal-content { width: 95%; max-width: 100%; } .credit-modal-header { padding: 20px; } .credit-modal-header h2 { font-size: 20px; } .credit-form { padding: 20px; } .form-actions { flex-direction: column; } .form-actions .button { width: 100%; justify-content: center; } } /* DataTables Customization */ .dataTables_wrapper .dataTables_filter input { border: 2px solid #ddd; border-radius: 4px; padding: 6px 10px; } .dataTables_wrapper .dataTables_length select { border: 2px solid #ddd; border-radius: 4px; padding: 6px 10px; }