credit-direct/assets/css/datatables-credit-manager.css
2025-12-18 09:44:42 +01:00

269 lines
4.5 KiB
CSS

/* DataTables Credit Manager Styles */
/* Table styling */
#credits-datatable {
width: 100% !important;
border-collapse: collapse;
margin-top: 20px;
}
#credits-datatable thead th {
background-color: #f1f1f1;
border: 1px solid #ddd;
padding: 12px 8px;
text-align: left;
font-weight: bold;
color: #333;
}
#credits-datatable tbody td {
border: 1px solid #ddd;
padding: 8px;
vertical-align: top;
}
#credits-datatable tbody tr:nth-child(even) {
background-color: #f9f9f9;
}
#credits-datatable tbody tr:hover {
background-color: #f5f5f5;
}
/* DataTables controls */
.dataTables_wrapper {
margin-top: 20px;
}
.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
margin: 10px 0;
}
.dataTables_filter input {
margin-left: 10px;
padding: 5px;
border: 1px solid #ddd;
border-radius: 3px;
}
/* Export buttons styling */
.dt-buttons {
margin-bottom: 20px;
}
.dt-button {
background: #0073aa;
color: white;
border: none;
padding: 8px 16px;
margin-right: 5px;
border-radius: 3px;
cursor: pointer;
font-size: 13px;
text-decoration: none;
display: inline-block;
}
.dt-button:hover {
background: #005a87;
color: white;
}
.dt-button.buttons-excel {
background: #1d6f42;
}
.dt-button.buttons-csv {
background: #f39c12;
}
.dt-button.buttons-pdf {
background: #e74c3c;
}
.dt-button.buttons-print {
background: #6c757d;
}
/* Responsive table */
@media (max-width: 768px) {
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
text-align: center;
margin: 10px 0;
}
.dt-buttons {
text-align: center;
margin-bottom: 15px;
}
.dt-button {
margin: 2px;
font-size: 12px;
padding: 6px 12px;
}
}
/* Loading spinner */
.dataTables_processing {
background: rgba(255, 255, 255, 0.9);
border: 1px solid #ddd;
border-radius: 3px;
color: #333;
font-size: 14px;
font-weight: bold;
left: 50%;
margin-left: -100px;
margin-top: -20px;
padding: 20px;
position: absolute;
text-align: center;
top: 50%;
width: 200px;
z-index: 2000;
}
/* Action buttons in table */
.action-buttons {
white-space: nowrap;
}
.action-buttons .button {
margin: 2px;
padding: 4px 8px;
font-size: 12px;
}
/* Modal styling for credit form */
.credit-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
}
.credit-modal-content {
background-color: #fefefe;
margin: 5% auto;
padding: 20px;
border: 1px solid #888;
width: 90%;
max-width: 800px;
max-height: 80vh;
overflow-y: auto;
border-radius: 5px;
}
.credit-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid #ddd;
}
.credit-modal-close {
color: #aaa;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.credit-modal-close:hover {
color: #000;
}
/* Form styling */
.credit-form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}
.credit-form .form-group {
display: flex;
flex-direction: column;
}
.credit-form .form-group.full-width {
grid-column: 1 / -1;
}
.credit-form label {
font-weight: bold;
margin-bottom: 5px;
color: #333;
}
.credit-form input,
.credit-form textarea,
.credit-form select {
padding: 8px;
border: 1px solid #ddd;
border-radius: 3px;
font-size: 14px;
}
.credit-form textarea {
resize: vertical;
min-height: 80px;
}
.credit-form .required {
color: #e74c3c;
}
/* Success/Error messages */
.credit-message {
padding: 10px;
margin: 10px 0;
border-radius: 3px;
display: none;
}
.credit-message.success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.credit-message.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
/* Loading state */
.loading {
opacity: 0.6;
pointer-events: none;
}
/* Custom scrollbar for modal */
.credit-modal-content::-webkit-scrollbar {
width: 8px;
}
.credit-modal-content::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
.credit-modal-content::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
.credit-modal-content::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}