1213 lines
24 KiB
CSS
1213 lines
24 KiB
CSS
/* ========================================
|
|
CREDIT MANAGER - NOTIFICATIONS
|
|
======================================== */
|
|
|
|
/* Indicateur de sauvegarde / Notification */
|
|
.auto-save-indicator {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
background: #28a745;
|
|
color: white;
|
|
padding: 12px 20px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
z-index: 9999;
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.auto-save-indicator.show {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.auto-save-indicator.saving {
|
|
background: #ffc107;
|
|
color: #212529;
|
|
}
|
|
|
|
.auto-save-indicator.error {
|
|
background: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
/* Animation de pulsation pour indiquer la sauvegarde */
|
|
.auto-save-indicator.saving::before {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
border: 2px solid currentColor;
|
|
border-radius: 50%;
|
|
border-top-color: transparent;
|
|
animation: spin 1s linear infinite;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Icône de succès */
|
|
.auto-save-indicator.show:not(.saving):not(.error)::before {
|
|
content: '✓';
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Icône d'erreur */
|
|
.auto-save-indicator.error::before {
|
|
content: '✕';
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.auto-save-indicator {
|
|
top: 10px;
|
|
right: 10px;
|
|
font-size: 12px;
|
|
padding: 10px 15px;
|
|
}
|
|
}
|
|
|
|
/* ========================================
|
|
CREDIT MANAGER - STATUS QUICK FILTERS
|
|
======================================== */
|
|
|
|
.status-quick-filters {
|
|
background: #fff;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin: 20px 0;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.status-quick-filters h3 {
|
|
margin: 0 0 15px 0;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid #0073aa;
|
|
font-size: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.status-filters-buttons {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.status-filter-btn {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border: 2px solid #ddd;
|
|
border-radius: 8px;
|
|
background: linear-gradient(145deg, #ffffff, #f8f9fa);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
font-family: inherit;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.status-filter-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
|
|
transition: left 0.5s;
|
|
}
|
|
|
|
.status-filter-btn:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.status-filter-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
border-color: #0073aa;
|
|
}
|
|
|
|
/* Couleurs par statut - reprises des boutons d'action */
|
|
.status-filter-btn.status-pending {
|
|
border-color: #ff9d00;
|
|
}
|
|
|
|
.status-filter-btn.status-pending .status-icon {
|
|
color: #ff9d00;
|
|
}
|
|
|
|
.status-filter-btn.status-pending.active {
|
|
background: linear-gradient(135deg, #ff9d00, #e68a00);
|
|
border-color: #ff9d00;
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(255, 157, 0, 0.4);
|
|
}
|
|
|
|
.status-filter-btn.status-pending:hover:not(.active) {
|
|
border-color: #ff9d00;
|
|
background: linear-gradient(145deg, #fff, #fff5e6);
|
|
}
|
|
|
|
.status-filter-btn.status-accepted-unsigned {
|
|
border-color: #8B5CF6;
|
|
}
|
|
|
|
.status-filter-btn.status-accepted-unsigned .status-icon {
|
|
color: #8B5CF6;
|
|
}
|
|
|
|
.status-filter-btn.status-accepted-unsigned.active {
|
|
background: linear-gradient(135deg, #8B5CF6, #7C3AED);
|
|
border-color: #8B5CF6;
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
|
|
}
|
|
|
|
.status-filter-btn.status-accepted-unsigned:hover:not(.active) {
|
|
border-color: #8B5CF6;
|
|
background: linear-gradient(145deg, #fff, #F5F3FF);
|
|
}
|
|
|
|
.status-filter-btn.status-accepted-filed {
|
|
border-color: #46b450;
|
|
}
|
|
|
|
.status-filter-btn.status-accepted-filed .status-icon {
|
|
color: #46b450;
|
|
}
|
|
|
|
.status-filter-btn.status-accepted-filed.active {
|
|
background: linear-gradient(135deg, #46b450, #3a9d42);
|
|
border-color: #46b450;
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(70, 180, 80, 0.4);
|
|
}
|
|
|
|
.status-filter-btn.status-accepted-filed:hover:not(.active) {
|
|
border-color: #46b450;
|
|
background: linear-gradient(145deg, #fff, #f0f9f1);
|
|
}
|
|
|
|
.status-filter-btn.status-refused {
|
|
border-color: #dc3232;
|
|
}
|
|
|
|
.status-filter-btn.status-refused .status-icon {
|
|
color: #dc3232;
|
|
}
|
|
|
|
.status-filter-btn.status-refused.active {
|
|
background: linear-gradient(135deg, #dc3232, #c62828);
|
|
border-color: #dc3232;
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(220, 50, 50, 0.4);
|
|
}
|
|
|
|
.status-filter-btn.status-refused:hover:not(.active) {
|
|
border-color: #dc3232;
|
|
background: linear-gradient(145deg, #fff, #fff0f0);
|
|
}
|
|
|
|
/* Bouton "Tous" */
|
|
.status-filter-btn.status-filter-all.active {
|
|
border-color: #0073aa;
|
|
background: linear-gradient(135deg, #0073aa, #005a87);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
|
|
}
|
|
|
|
/* Icônes actives en blanc */
|
|
.status-filter-btn.active .status-icon,
|
|
.status-filter-btn.active .status-label,
|
|
.status-filter-btn.active .status-count {
|
|
color: white;
|
|
}
|
|
|
|
.status-icon {
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.status-label {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
color: #23282d;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.status-count {
|
|
font-size: 12px;
|
|
color: #666;
|
|
font-weight: 500;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.status-filter-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.status-filter-btn:disabled:hover {
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Animation au clic */
|
|
.status-filter-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.status-filters-buttons {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.status-filter-btn {
|
|
padding: 12px 15px;
|
|
gap: 5px;
|
|
}
|
|
|
|
.status-icon {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.status-label {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.status-count {
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.status-filters-buttons {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ========================================
|
|
CREDIT MANAGER - FILTERS PANEL
|
|
======================================== */
|
|
|
|
.credit-filters-panel {
|
|
background: #fff;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin: 20px 0;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.credit-filters-panel h3 {
|
|
margin: 0 0 15px 0;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid #0073aa;
|
|
font-size: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.filters-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 15px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.filter-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
.filter-group label {
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
color: #23282d;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.filter-group input[type="text"],
|
|
.filter-group input[type="number"],
|
|
.filter-group input[type="date"],
|
|
.filter-group select {
|
|
padding: 8px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.filter-group select optgroup {
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
color: #0073aa;
|
|
padding: 5px 0;
|
|
}
|
|
|
|
.filter-group select option {
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
.filter-range .range-inputs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.filter-range .range-inputs input {
|
|
flex: 1;
|
|
}
|
|
|
|
.filter-range .range-inputs span {
|
|
font-weight: 600;
|
|
color: #666;
|
|
}
|
|
|
|
.filter-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding-top: 15px;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
|
|
.filter-actions .button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
/* ========================================
|
|
CREDIT MANAGER - MODAL STYLES
|
|
======================================== */
|
|
|
|
/* Modal Container - Style Bootstrap élégant */
|
|
.credit-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 999999;
|
|
display: none;
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
.credit-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: 1000px;
|
|
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;
|
|
color: #ffffff;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.credit-modal-close {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: none;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
color: #ffffff;
|
|
padding: 8px;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
z-index: 1;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.credit-modal-close:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transform: scale(1.1);
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.credit-modal-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.credit-form {
|
|
padding: 20px;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Form Grid */
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
/* Form Columns - Layout en deux colonnes */
|
|
.form-columns {
|
|
display: flex;
|
|
gap: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.form-column {
|
|
flex: 1;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.form-column:first-child {
|
|
border-right: 1px solid #e0e0e0;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.form-column:last-child {
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group-full {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
margin-top: 20px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #e0e0e0;
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.form-group label {
|
|
margin-bottom: 5px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select,
|
|
.form-group textarea {
|
|
padding: 8px 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus,
|
|
.form-group textarea:focus {
|
|
outline: none;
|
|
border-color: #001954;
|
|
box-shadow: 0 0 0 1px #001954;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 15px;
|
|
margin-top: 30px;
|
|
padding: 25px 30px;
|
|
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
background: linear-gradient(135deg, #f8f9fa, #e9ecef);
|
|
border-radius: 0 0 20px 20px;
|
|
}
|
|
|
|
.button {
|
|
padding: 12px 24px;
|
|
border: none;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-width: 120px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.button::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
|
transition: left 0.5s;
|
|
}
|
|
|
|
.button:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.button-primary {
|
|
background: linear-gradient(135deg, #001954 0%, #ff9d00 100%);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(0, 25, 84, 0.4);
|
|
}
|
|
|
|
.button-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(255, 157, 0, 0.6);
|
|
}
|
|
|
|
.button-secondary {
|
|
background: linear-gradient(135deg, #f8f9fa, #e9ecef);
|
|
color: #495057;
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.button-secondary:hover {
|
|
background: linear-gradient(135deg, #e9ecef, #dee2e6);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* ========================================
|
|
CREDIT MANAGER - DATATABLE BUTTONS
|
|
======================================== */
|
|
|
|
/* Conteneur des boutons DataTables */
|
|
.dt-buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
background: #f9f9f9;
|
|
border-radius: 8px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
/* Boutons d'export Excel */
|
|
.btn-export-excel {
|
|
background: linear-gradient(135deg, #1d6f42, #165a36) !important;
|
|
color: white !important;
|
|
border: none !important;
|
|
padding: 10px 20px !important;
|
|
border-radius: 6px !important;
|
|
font-weight: 600 !important;
|
|
cursor: pointer !important;
|
|
transition: all 0.3s ease !important;
|
|
display: inline-flex !important;
|
|
align-items: center !important;
|
|
gap: 8px !important;
|
|
box-shadow: 0 2px 5px rgba(29, 111, 66, 0.3) !important;
|
|
}
|
|
|
|
.btn-export-excel:hover {
|
|
background: linear-gradient(135deg, #228b52, #1d6f42) !important;
|
|
transform: translateY(-2px) !important;
|
|
box-shadow: 0 4px 10px rgba(29, 111, 66, 0.4) !important;
|
|
}
|
|
|
|
/* Boutons d'export CSV */
|
|
.btn-export-csv {
|
|
background: linear-gradient(135deg, #0073aa, #005a87) !important;
|
|
color: white !important;
|
|
border: none !important;
|
|
padding: 10px 20px !important;
|
|
border-radius: 6px !important;
|
|
font-weight: 600 !important;
|
|
cursor: pointer !important;
|
|
transition: all 0.3s ease !important;
|
|
display: inline-flex !important;
|
|
align-items: center !important;
|
|
gap: 8px !important;
|
|
box-shadow: 0 2px 5px rgba(0, 115, 170, 0.3) !important;
|
|
}
|
|
|
|
.btn-export-csv:hover {
|
|
background: linear-gradient(135deg, #008fd5, #0073aa) !important;
|
|
transform: translateY(-2px) !important;
|
|
box-shadow: 0 4px 10px rgba(0, 115, 170, 0.4) !important;
|
|
}
|
|
|
|
/* Icônes dans les boutons */
|
|
.btn-export-excel i,
|
|
.btn-export-csv i {
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* ========================================
|
|
CREDIT MANAGER - TABLE STYLES
|
|
======================================== */
|
|
|
|
.credit-actions-header {
|
|
margin-bottom: 20px;
|
|
padding: 15px 0;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.credit-actions-header .button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.credit-actions-header .description {
|
|
color: #666;
|
|
font-style: italic;
|
|
margin: 0;
|
|
}
|
|
|
|
.credits-table {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.credits-table th {
|
|
background-color: #f1f1f1;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.credits-table .actions-column {
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.credits-table .actions-column .button {
|
|
margin: 0 2px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
}
|
|
|
|
.credits-table .actions-column .button-small {
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.credits-table .button-link-delete {
|
|
color: #a00;
|
|
}
|
|
|
|
.credits-table .button-link-delete:hover {
|
|
color: #dc3232;
|
|
}
|
|
|
|
/* Badges de statut dans la table */
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
color: #fff;
|
|
text-align: center;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.status-badge.status-pending {
|
|
/* color: #7a4a00;
|
|
background: #fff5e6; */
|
|
background: #ff9d00;
|
|
border-color: #ff9d00;
|
|
}
|
|
|
|
.status-badge.status-accepted-unsigned {
|
|
/* color: #1f5d28; */
|
|
/* background: #f0f9f1; */
|
|
background: #8B5CF6;
|
|
border-color: #8B5CF6;
|
|
}
|
|
|
|
.status-badge.status-accepted-filed {
|
|
/* color: #1f5d28;
|
|
background: #f0f9f1; */
|
|
background: #46b450;
|
|
border-color: #46b450;
|
|
}
|
|
|
|
.status-badge.status-refused {
|
|
/* color: #7a1a1a;
|
|
background: #fff0f0; */
|
|
background: #dc3232;
|
|
border-color: #dc3232;
|
|
}
|
|
|
|
/* ========================================
|
|
CREDIT MANAGER - ACTIONS GRID (Adaptative)
|
|
======================================== */
|
|
|
|
.credit-actions-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: 1fr 1fr;
|
|
gap: 5px;
|
|
padding: 5px;
|
|
width: 100%;
|
|
max-width: 120px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.credit-action-btn {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.credit-action-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.credit-action-btn i {
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Couleurs des boutons */
|
|
.btn-edit {
|
|
background: linear-gradient(135deg, #007cba, #0071a1);
|
|
color: white;
|
|
}
|
|
|
|
.btn-edit:hover {
|
|
background: linear-gradient(135deg, #008fd5, #007cba);
|
|
}
|
|
|
|
.btn-accepted-unsigned {
|
|
background: linear-gradient(135deg, #8B5CF6, #7C3AED);
|
|
color: white;
|
|
}
|
|
|
|
.btn-accepted-unsigned:hover {
|
|
background: linear-gradient(135deg, #A78BFA, #8B5CF6);
|
|
}
|
|
|
|
.btn-accepted-filed {
|
|
background: linear-gradient(135deg, #46b450, #3a9d42);
|
|
color: white;
|
|
}
|
|
|
|
.btn-accepted-filed:hover {
|
|
background: linear-gradient(135deg, #55c95f, #46b450);
|
|
}
|
|
|
|
.btn-refused {
|
|
background: linear-gradient(135deg, #dc3232, #c62828);
|
|
color: white;
|
|
}
|
|
|
|
.btn-refused:hover {
|
|
background: linear-gradient(135deg, #e65454, #dc3232);
|
|
}
|
|
|
|
/* Boutons désactivés */
|
|
.credit-action-btn:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
filter: grayscale(50%);
|
|
}
|
|
|
|
.credit-action-btn:disabled:hover {
|
|
transform: none;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Tooltips personnalisés */
|
|
.credit-action-btn::before {
|
|
content: attr(title);
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-5px);
|
|
background: rgba(0, 0, 0, 0.9);
|
|
color: white;
|
|
padding: 6px 10px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.credit-action-btn::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border: 5px solid transparent;
|
|
border-top-color: rgba(0, 0, 0, 0.9);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.3s ease;
|
|
z-index: 999;
|
|
}
|
|
|
|
.credit-action-btn:hover::before {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(-10px);
|
|
}
|
|
|
|
.credit-action-btn:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Ajustement pour petits écrans */
|
|
@media (max-width: 768px) {
|
|
.credit-actions-grid {
|
|
max-width: 100px;
|
|
gap: 3px;
|
|
}
|
|
|
|
.credit-action-btn {
|
|
width: 35px;
|
|
height: 35px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.credit-action-btn i {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
.no-credits {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: #666;
|
|
}
|
|
|
|
.no-credits .button-link {
|
|
color: #001954;
|
|
text-decoration: none;
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.no-credits .button-link:hover {
|
|
color: #ff9d00;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ========================================
|
|
STATISTIQUES
|
|
======================================== */
|
|
|
|
.credit-stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.stats-card {
|
|
background: #fff;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
text-align: center;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.stats-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.stats-card h3 {
|
|
margin: 0 0 10px 0;
|
|
color: #333;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.stats-number {
|
|
font-size: 32px;
|
|
font-weight: bold;
|
|
color: #001954;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.stats-chart {
|
|
background: #fff;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin: 20px 0;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.stats-chart h3 {
|
|
margin: 0 0 15px 0;
|
|
color: #333;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ========================================
|
|
RESPONSIVE DESIGN
|
|
======================================== */
|
|
|
|
/* Animations */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes modalSlideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.8) translateY(-50px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1) translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideOut {
|
|
from {
|
|
opacity: 1;
|
|
transform: scale(1) translateY(0);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: scale(0.8) translateY(-50px);
|
|
}
|
|
}
|
|
|
|
/* Animation de fermeture */
|
|
.credit-modal.closing .credit-modal-content {
|
|
animation: slideOut 0.3s ease-in forwards;
|
|
}
|
|
|
|
.credit-modal.closing .credit-modal-overlay {
|
|
animation: fadeOut 0.3s ease-in forwards;
|
|
}
|
|
|
|
@keyframes fadeOut {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* Effet de focus sur les inputs */
|
|
.form-group input:focus,
|
|
.form-group select:focus,
|
|
.form-group textarea:focus {
|
|
outline: none;
|
|
border-color: #001954;
|
|
box-shadow:
|
|
0 0 0 3px rgba(0, 25, 84, 0.1),
|
|
0 2px 10px rgba(255, 157, 0, 0.2);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Modal Responsive */
|
|
@media (max-width: 768px) {
|
|
.form-columns {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.credit-modal-content {
|
|
width: 95%;
|
|
margin: 5% auto;
|
|
}
|
|
|
|
.credit-modal-header {
|
|
padding: 20px;
|
|
}
|
|
|
|
.credit-modal-header h2 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.form-actions {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.button {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* Table Responsive */
|
|
@media (max-width: 1200px) {
|
|
.credits-table {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.credits-table th,
|
|
.credits-table td {
|
|
padding: 8px 4px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.credits-table {
|
|
display: block;
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.credits-table thead,
|
|
.credits-table tbody,
|
|
.credits-table th,
|
|
.credits-table td,
|
|
.credits-table tr {
|
|
display: block;
|
|
}
|
|
|
|
.credits-table thead tr {
|
|
position: absolute;
|
|
top: -9999px;
|
|
left: -9999px;
|
|
}
|
|
|
|
.credits-table tr {
|
|
border: 1px solid #ccc;
|
|
margin-bottom: 10px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.credits-table td {
|
|
border: none;
|
|
position: relative;
|
|
padding-left: 50%;
|
|
white-space: normal;
|
|
}
|
|
|
|
.credits-table td:before {
|
|
content: attr(data-label) ": ";
|
|
position: absolute;
|
|
left: 6px;
|
|
width: 45%;
|
|
padding-right: 10px;
|
|
white-space: nowrap;
|
|
font-weight: bold;
|
|
}
|
|
}
|