Restyling monitor aste: toolbar compatta, split panel, UX

- Nuova toolbar compatta con azioni rapide e indicatori stato aste
- Layout a pannelli ridimensionabili con splitter drag&drop
- Tabella aste compatta, ping colorato, azioni XS
- Pulsanti per rimozione aste per stato (attive, vinte, ecc.)
- Dettagli asta sempre visibili in pannello inferiore
- Statistiche prodotti: filtro, ordinamento, editing limiti default
- Limiti default prodotto salvati in DB, applicabili a tutte le aste
- Migliorata sidebar utente con info sessione sempre visibili
- Log motivi blocco puntata sempre visibili, suggerimenti timing
- Miglioramenti filtri, UX responsive, fix minori e feedback visivi
This commit is contained in:
2026-02-06 15:35:53 +01:00
parent 45dd205270
commit 5b95f18889
11 changed files with 2289 additions and 585 deletions

View File

@@ -1,5 +1,423 @@
/* === MODERN PAGE STYLES (append to app-wpf.css) === */
/* ═══════════════════════════════════════════════════════════════════
TOOLBAR COMPATTA CON PULSANTI E CONTEGGI
═══════════════════════════════════════════════════════════════════ */
.toolbar-compact {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0.75rem;
background: linear-gradient(135deg, rgba(20, 20, 30, 0.8) 0%, rgba(30, 30, 45, 0.8) 100%);
border-radius: var(--radius-md);
border: 1px solid rgba(255, 255, 255, 0.05);
margin-bottom: 0.5rem;
flex-wrap: wrap;
}
.btn-group-actions {
display: flex;
gap: 0.25rem;
}
.action-btn {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
border-radius: var(--radius-sm);
font-size: 1rem;
cursor: pointer;
transition: all 0.2s ease;
}
.action-btn.success {
background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
color: white;
}
.action-btn.success:hover {
box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
transform: translateY(-1px);
}
.action-btn.warning {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
color: #1a1a1a;
}
.action-btn.warning:hover {
box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
transform: translateY(-1px);
}
.action-btn.secondary {
background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
color: white;
}
.action-btn.secondary:hover {
box-shadow: 0 0 10px rgba(107, 114, 128, 0.5);
transform: translateY(-1px);
}
/* Indicatori Stato */
.status-indicators {
display: flex;
align-items: center;
gap: 0.375rem;
padding: 0 0.5rem;
border-left: 1px solid rgba(255, 255, 255, 0.1);
border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.status-pill {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.5rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
transition: all 0.15s ease;
}
.status-pill:hover {
background: rgba(255, 255, 255, 0.1);
}
.status-pill i {
font-size: 0.7rem;
}
.status-pill.total { color: #a5b4fc; border-color: rgba(99, 102, 241, 0.3); }
.status-pill.active { color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
.status-pill.paused { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
.status-pill.stopped { color: #9ca3af; border-color: rgba(156, 163, 175, 0.3); }
.status-pill.won { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
.status-pill.lost { color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
/* Pulsanti Gestione */
.btn-group-manage {
display: flex;
align-items: center;
gap: 0.25rem;
margin-left: auto;
}
.manage-separator {
width: 1px;
height: 20px;
background: rgba(255, 255, 255, 0.15);
margin: 0 0.25rem;
}
.manage-btn {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: 1px solid transparent;
border-radius: var(--radius-sm);
font-size: 0.8rem;
cursor: pointer;
transition: all 0.15s ease;
background: transparent;
}
.manage-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.manage-btn.primary {
background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
color: white;
}
.manage-btn.primary:hover:not(:disabled) {
box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}
.manage-btn.danger {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
}
.manage-btn.danger:hover:not(:disabled) {
box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.manage-btn.danger-fill {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
color: white;
}
.manage-btn.danger-fill:hover:not(:disabled) {
box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}
.manage-btn.outline-success {
border-color: rgba(34, 197, 94, 0.4);
color: #4ade80;
}
.manage-btn.outline-success:hover:not(:disabled) {
background: rgba(34, 197, 94, 0.15);
}
.manage-btn.outline-warning {
border-color: rgba(245, 158, 11, 0.4);
color: #fbbf24;
}
.manage-btn.outline-warning:hover:not(:disabled) {
background: rgba(245, 158, 11, 0.15);
}
.manage-btn.outline-secondary {
border-color: rgba(156, 163, 175, 0.4);
color: #9ca3af;
}
.manage-btn.outline-secondary:hover:not(:disabled) {
background: rgba(156, 163, 175, 0.15);
}
.manage-btn.outline-gold {
border-color: rgba(251, 191, 36, 0.4);
color: #fbbf24;
}
.manage-btn.outline-gold:hover:not(:disabled) {
background: rgba(251, 191, 36, 0.15);
}
.manage-btn.outline-danger {
border-color: rgba(239, 68, 68, 0.4);
color: #f87171;
}
.manage-btn.outline-danger:hover:not(:disabled) {
background: rgba(239, 68, 68, 0.15);
}
/* ═══════════════════════════════════════════════════════════════════
LAYOUT CON SPLITTER TRASCINABILI
═══════════════════════════════════════════════════════════════════ */
/* Container principale - occupa tutto lo spazio disponibile */
.auction-monitor-container {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
overflow: hidden;
box-sizing: border-box;
}
/* Area contenuto principale */
.main-content-area {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
gap: 0;
}
/* Riga superiore (Aste + Log) */
.top-row {
display: flex;
flex-direction: row;
flex: 1;
min-height: 150px;
overflow: hidden;
gap: 0;
}
/* Riga inferiore (Dettagli) */
.bottom-row {
display: flex;
flex-direction: column;
min-height: 80px;
overflow: hidden;
}
/* Pannello generico */
.panel {
display: flex;
flex-direction: column;
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
overflow: hidden;
box-sizing: border-box;
}
/* Pannello Aste */
.panel-auctions {
flex: 1;
min-width: 200px;
}
/* Pannello Log */
.panel-log {
flex: 0 0 280px;
min-width: 150px;
max-width: 450px;
}
/* Pannello Dettagli */
.panel-details {
flex: 1;
min-height: 80px;
overflow: auto;
}
/* Gutter/Splitter */
.gutter {
background: rgba(255, 255, 255, 0.03);
flex-shrink: 0;
transition: background 0.15s ease;
}
.gutter:hover {
background: rgba(99, 102, 241, 0.25);
}
.gutter:active {
background: rgba(99, 102, 241, 0.4);
}
.gutter-vertical {
width: 6px;
cursor: col-resize;
}
.gutter-horizontal {
height: 6px;
cursor: row-resize;
}
/* Header pannello */
.panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.4rem 0.6rem;
background: rgba(255, 255, 255, 0.03);
border-bottom: 1px solid var(--border-color);
font-size: 0.75rem;
font-weight: 600;
color: var(--text-secondary);
flex-shrink: 0;
}
.panel-header i {
margin-right: 0.4rem;
opacity: 0.7;
}
.panel-content {
flex: 1;
overflow: auto;
min-height: 0;
}
/* Contenuto dettagli */
.auction-details-content {
padding: 0.5rem;
height: 100%;
overflow: auto;
}
.details-header {
font-size: 0.9rem;
font-weight: 600;
padding: 0.25rem 0 0.5rem 0;
border-bottom: 1px solid var(--border-color);
margin-bottom: 0.5rem;
}
/* Placeholder dettagli */
.details-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
padding: 1rem;
color: var(--text-muted);
text-align: center;
}
.details-placeholder i {
font-size: 1.25rem;
margin-bottom: 0.375rem;
opacity: 0.5;
}
.details-placeholder p {
margin: 0;
font-size: 0.8rem;
}
/* Colonna Ping */
.col-ping {
width: 55px;
min-width: 55px;
text-align: center;
font-size: 0.7rem;
font-weight: 500;
}
/* Responsive */
@media (max-width: 992px) {
.top-row {
flex-direction: column;
}
.gutter-vertical {
display: none;
}
.panel-log {
flex: 0 0 150px;
max-width: none;
}
.toolbar-compact {
flex-direction: column;
align-items: stretch;
gap: 0.5rem;
}
.btn-group-actions,
.status-indicators,
.btn-group-manage {
justify-content: center;
}
.status-indicators {
border: none;
padding: 0.5rem 0;
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-group-manage {
margin-left: 0;
flex-wrap: wrap;
}
}
/* ✅ NUOVO: Stili per selezione riga e colonna puntate */
.table-hover tbody tr {
cursor: pointer;
@@ -712,3 +1130,52 @@
background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
color: #e5e5e5 !important;
}
/* ═══════════════════════════════════════════════════════════════════
BANNER STATISTICHE ASTE - RIMOSSO (sostituito da toolbar compatta)
═══════════════════════════════════════════════════════════════════ */
/* Legacy support - nascosto */
.auctions-stats-banner {
display: none;
}
/* ═══════════════════════════════════════════════════════════════════
TABELLA COMPATTA
═══════════════════════════════════════════════════════════════════ */
.table-compact {
font-size: 0.8rem;
}
.table-compact th {
padding: 0.4rem 0.5rem;
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.3px;
white-space: nowrap;
}
.table-compact td {
padding: 0.35rem 0.5rem;
vertical-align: middle;
}
.table-compact .col-stato {
width: 80px;
}
.table-compact .col-azioni {
width: 90px;
}
/* Pulsanti extra small */
.btn-xs {
padding: 0.15rem 0.35rem;
font-size: 0.7rem;
line-height: 1.2;
}
.btn-xs i {
font-size: 0.75rem;
}