chore: add ansible backend docker frontend-prep
This commit is contained in:
@@ -0,0 +1,664 @@
|
||||
/* ============================================
|
||||
ConsultationHistorique.css - VERSION VIOLET SOMBRE
|
||||
============================================
|
||||
Styles pour 4 compteurs de points distincts */
|
||||
|
||||
.history-container {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
padding: clamp(1rem, 3vw, 2rem);
|
||||
padding-top: calc(60px + clamp(1rem, 3vw, 2rem));
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
HEADER
|
||||
============================================ */
|
||||
|
||||
.history-header {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.history-title {
|
||||
color: white;
|
||||
font-size: clamp(2rem, 6vw, 2.5rem);
|
||||
margin: 0 0 0.5rem 0;
|
||||
font-weight: 700;
|
||||
background: #ffffff;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.history-subtitle {
|
||||
color: #9ca3af;
|
||||
font-size: clamp(0.9rem, 2vw, 1.1rem);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
STATISTIQUES - GRID ADAPTÉ POUR 6 CARTES
|
||||
============================================ */
|
||||
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.stat-card2 {
|
||||
background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
|
||||
border: 2px solid #333;
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
✅ HOVER VIOLET SOMBRE POUR TOUTES LES CARTES
|
||||
============================================ */
|
||||
|
||||
.stat-card2:hover {
|
||||
border-color: #6d28d9;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 25px rgba(109, 40, 217, 0.4);
|
||||
}
|
||||
|
||||
.stat-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background: linear-gradient(135deg, #7c3aed, #6d28d9);
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
✅ ICÔNES POUR COMMANDES - VIOLET SOMBRE
|
||||
============================================ */
|
||||
|
||||
.stat-icon.icon-total-orders {
|
||||
background: linear-gradient(135deg, #6d28d9, #5b21b6);
|
||||
}
|
||||
|
||||
.stat-icon.icon-completed-orders {
|
||||
background: linear-gradient(135deg, #8b5cf6, #7c3aed);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
✅ STYLES SPÉCIFIQUES POUR LES POINTS
|
||||
============================================ */
|
||||
|
||||
/* Total Commandes - Violet Très Sombre */
|
||||
.stat-card2.total-orders:hover {
|
||||
border-color: #5b21b6;
|
||||
box-shadow: 0 8px 25px rgba(91, 33, 182, 0.5);
|
||||
}
|
||||
|
||||
.stat-icon.icon-total-orders {
|
||||
background: linear-gradient(135deg, #6d28d9, #5b21b6);
|
||||
}
|
||||
|
||||
/* Commandes Livrées - Violet Sombre Clair */
|
||||
.stat-card2.completed-orders:hover {
|
||||
border-color: #7c3aed;
|
||||
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
|
||||
}
|
||||
|
||||
.stat-icon.icon-completed-orders {
|
||||
background: linear-gradient(135deg, #8b5cf6, #7c3aed);
|
||||
}
|
||||
|
||||
/* Points Weed/Hash - Vert (couleur d'origine) */
|
||||
.stat-card2.points-weed:hover {
|
||||
border-color: #5b21b6;
|
||||
box-shadow: 0 8px 25px rgba(91, 33, 182, 0.5);
|
||||
}
|
||||
|
||||
.stat-icon.icon-weed {
|
||||
background: linear-gradient(135deg, #10b981, #059669);
|
||||
}
|
||||
|
||||
/* Points Zipette - Bleu (couleur d'origine) */
|
||||
.stat-card2.points-zipette:hover {
|
||||
border-color: #6d28d9;
|
||||
box-shadow: 0 8px 25px rgba(109, 40, 217, 0.5);
|
||||
}
|
||||
|
||||
.stat-icon.icon-zipette {
|
||||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||||
}
|
||||
|
||||
/* Points Total - Orange (couleur d'origine) */
|
||||
.stat-card2.points-total:hover {
|
||||
border-color: #4c1d95;
|
||||
box-shadow: 0 8px 25px rgba(76, 29, 149, 0.5);
|
||||
}
|
||||
|
||||
.stat-icon.icon-total {
|
||||
background: linear-gradient(135deg, #f59e0b, #d97706);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
STAT CONTENT
|
||||
============================================ */
|
||||
|
||||
.stat-content {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
color: #9ca3af;
|
||||
font-size: 0.9rem;
|
||||
margin: 0 0 0.5rem 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
color: white;
|
||||
font-size: 1.8rem;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
PENALTY STAT CARD - VIOLET SOMBRE
|
||||
============================================ */
|
||||
|
||||
.penalty-stat {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.penalty-stat.has-penalty:hover {
|
||||
border-color: #7c3aed;
|
||||
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
|
||||
}
|
||||
|
||||
.stat-icon.penalty-warning {
|
||||
background: linear-gradient(135deg, #8b5cf6, #7c3aed);
|
||||
}
|
||||
|
||||
.stat-icon.penalty-critical {
|
||||
background: linear-gradient(135deg, #6d28d9, #5b21b6);
|
||||
animation: pulse-penalty 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-penalty {
|
||||
0%, 100% {
|
||||
box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.7);
|
||||
}
|
||||
50% {
|
||||
box-shadow: 0 0 0 10px rgba(109, 40, 217, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.penalty-value {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.penalty-limit {
|
||||
font-size: 1rem;
|
||||
color: #6b7280;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.penalty-warning-text {
|
||||
color: #a78bfa;
|
||||
font-size: 0.85rem;
|
||||
margin: 0.5rem 0 0 0;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
LOADING
|
||||
============================================ */
|
||||
|
||||
.loading-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 60vh;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 4px solid #333;
|
||||
border-top-color: #7c3aed;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.loading-text {
|
||||
color: #9ca3af;
|
||||
font-size: 1.1rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
ERROR
|
||||
============================================ */
|
||||
|
||||
.error-banner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
background: rgba(109, 40, 217, 0.1);
|
||||
border: 2px solid #7c3aed;
|
||||
border-radius: 12px;
|
||||
padding: 1rem 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.error-banner span {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.error-banner p {
|
||||
color: #c4b5fd;
|
||||
margin: 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
EMPTY STATE
|
||||
============================================ */
|
||||
|
||||
.empty-history {
|
||||
text-align: center;
|
||||
padding: 4rem 2rem;
|
||||
background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
|
||||
border: 2px solid #333;
|
||||
border-radius: 12px;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.empty-icon {
|
||||
color: #4b5563;
|
||||
margin-bottom: 1.5rem;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.empty-history h2 {
|
||||
color: white;
|
||||
font-size: 1.5rem;
|
||||
margin: 0 0 0.5rem 0;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.empty-history p {
|
||||
color: #9ca3af;
|
||||
font-size: 1.1rem;
|
||||
margin: 0 0 2rem 0;
|
||||
}
|
||||
|
||||
.browse-button {
|
||||
background: linear-gradient(to right, #7c3aed, #6d28d9);
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 0.75rem 2rem;
|
||||
border-radius: 8px;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
|
||||
}
|
||||
|
||||
.browse-button:hover {
|
||||
background: linear-gradient(to right, #6d28d9, #5b21b6);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(109, 40, 217, 0.5);
|
||||
}
|
||||
|
||||
.browse-button:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
SUMMARY
|
||||
============================================ */
|
||||
|
||||
.orders-summary {
|
||||
margin-bottom: 1rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: rgba(124, 58, 237, 0.1);
|
||||
border: 1px solid rgba(124, 58, 237, 0.3);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.orders-summary p {
|
||||
color: #a78bfa;
|
||||
margin: 0;
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
TABLE - HOVER VIOLET SOMBRE
|
||||
============================================ */
|
||||
|
||||
.table-wrapper {
|
||||
overflow-x: auto;
|
||||
background-color: #1a1a1a;
|
||||
border: 2px solid #333;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.history-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
min-width: 900px;
|
||||
}
|
||||
|
||||
.history-table thead {
|
||||
background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
|
||||
border-bottom: 2px solid #7c3aed;
|
||||
}
|
||||
|
||||
.history-table th {
|
||||
color: white;
|
||||
font-size: clamp(0.85rem, 2vw, 0.95rem);
|
||||
font-weight: 700;
|
||||
text-align: left;
|
||||
padding: 1.25rem 1rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.history-table tbody tr {
|
||||
border-bottom: 1px solid #333;
|
||||
transition: all 0.2s ease;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.history-table tbody tr:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* ✅ HOVER VIOLET SOMBRE SUR LES LIGNES */
|
||||
.history-table tbody tr:hover {
|
||||
background: linear-gradient(90deg, rgba(109, 40, 217, 0.15), transparent);
|
||||
border-left: 3px solid #6d28d9;
|
||||
}
|
||||
|
||||
.history-table tbody tr:active {
|
||||
background-color: #2a2a2a;
|
||||
}
|
||||
|
||||
.history-table td {
|
||||
color: #cccccc;
|
||||
font-size: clamp(0.85rem, 2vw, 0.95rem);
|
||||
padding: 1.25rem 1rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
TABLE CELLS - SPECIFIC STYLES
|
||||
============================================ */
|
||||
|
||||
.order-id {
|
||||
color: white !important;
|
||||
font-weight: 700;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.date-cell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.date-main {
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.date-time {
|
||||
color: #9ca3af;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.date-age {
|
||||
color: #7c3aed;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.address-cell {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.address-icon {
|
||||
color: #7c3aed;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.address-text {
|
||||
color: #d1d5db;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.livreur-cell {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.livreur-icon {
|
||||
color: #7c3aed;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.no-livreur {
|
||||
color: #6b7280;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.products-count {
|
||||
color: #9ca3af;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.order-total2 {
|
||||
color: #7c3aed !important;
|
||||
font-weight: 700 !important;
|
||||
font-size: 1.1rem !important;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
STATUS BADGE - VIOLET SOMBRE
|
||||
============================================ */
|
||||
|
||||
.status-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 20px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.status-badge.delivered {
|
||||
background: transparent;
|
||||
color: #a78bfa;
|
||||
border: 2px solid #7c3aed;
|
||||
box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
|
||||
}
|
||||
|
||||
.status-badge.in-progress {
|
||||
background: rgba(139, 92, 246, 0.15);
|
||||
color: #a78bfa;
|
||||
border: 2px solid #8b5cf6;
|
||||
box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
|
||||
}
|
||||
|
||||
.status-badge.pending {
|
||||
background: rgba(124, 58, 237, 0.15);
|
||||
color: #c4b5fd;
|
||||
border: 2px solid #7c3aed;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
RESPONSIVE
|
||||
============================================ */
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.history-table {
|
||||
min-width: 800px;
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.stats-grid {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.stat-card2 {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
|
||||
.history-table th,
|
||||
.history-table td {
|
||||
padding: 1rem 0.75rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.order-id {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.order-total {
|
||||
font-size: 1rem !important;
|
||||
}
|
||||
|
||||
.address-text {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.history-container {
|
||||
padding: 1rem;
|
||||
padding-top: calc(60px + 1rem);
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.table-wrapper {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.history-table {
|
||||
min-width: 700px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.history-table th,
|
||||
.history-table td {
|
||||
padding: 0.875rem 0.625rem;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.empty-history {
|
||||
padding: 3rem 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
HOVER EFFECTS (Desktop only) - VIOLET SOMBRE
|
||||
============================================ */
|
||||
|
||||
@media (hover: hover) {
|
||||
.clickable-row {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.clickable-row::before {
|
||||
content: '→';
|
||||
position: absolute;
|
||||
right: 1rem;
|
||||
color: #a78bfa;
|
||||
font-size: 1.5rem;
|
||||
opacity: 0;
|
||||
transform: translateX(-10px);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.clickable-row:hover::before {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
PRINT STYLES
|
||||
============================================ */
|
||||
|
||||
@media print {
|
||||
.history-container {
|
||||
background: white;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.stats-grid,
|
||||
.browse-button,
|
||||
.status-badge {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.history-table {
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
.history-table th,
|
||||
.history-table td {
|
||||
color: #000;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user