/* Stili per la tabella email leads */

/* Stile per i link agli allegati */
.file-attachment-link {
    display: inline-block;
    margin: 2px 0;
    padding: 3px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
}

.file-attachment-link:hover {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Stile per la cella dei file */
.file-cell {
    padding: 8px 12px;
    line-height: 1.5;
}

/* Stili per i ticket */
.ticket-saved {
    background-color: #d4edda !important;
    border-left: 4px solid #28a745 !important;
    transition: all 0.3s ease;
}

.ticket-saved td {
    background-color: #d4edda !important;
}

/* Stili per il controllo dei ticket */
.ticket-controls {
    /*display: flex;*/
    align-items: center;
    gap: 8px;
}

.ticket-checkbox {
    margin: 0;
    cursor: pointer;
}

button.ticket-toggle-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    color: #425c74 !important; 	border: none;
	padding: 0;
}

button.ticket-toggle-btn:hover {
    background-color: #f0f0f0;
    color: #007bff;
    transform: scale(1.1);
}
button.ticket-toggle-btn[type="button"]:focus { background-color: transparent !important;}

.ticket-toggle-btn i {
    transition: all 0.3s ease;
    display: inline-block;
}

/* Stato chiuso - freccia giù */
.ticket-toggle-btn.closed i {
    transform: rotate(0deg);
    color: #6c757d;
}

/* Stato aperto - freccia su */
.ticket-toggle-btn.open i {
    transform: rotate(180deg);
    color: #28a745;
}

/* Animazione durante l'apertura */
.ticket-toggle-btn.opening i {
    animation: arrowRotateOpen 0.4s ease-in-out forwards;
}

/* Animazione durante la chiusura */
.ticket-toggle-btn.closing i {
    animation: arrowRotateClose 0.4s ease-in-out forwards;
}

@keyframes arrowRotateOpen {
    0% { 
        transform: rotate(0deg); 
        color: #6c757d; 
    }
    100% { 
        transform: rotate(180deg); 
        color: #28a745; 
    }
}

@keyframes arrowRotateClose {
    0% { 
        transform: rotate(180deg); 
        color: #28a745; 
    }
    100% { 
        transform: rotate(0deg); 
        color: #6c757d; 
    }
}

/* Messaggi per i ticket */
.ticket-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.ticket-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ticket-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Feedback visivo per ticket salvato */
.ticket-saved {
    background-color: #d4edda !important;
    transition: background-color 0.3s ease;
}

.ticket-toggle-btn.open .ticket-icon-closed {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

.ticket-toggle-btn.open .ticket-icon-open {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.ticket-toggle-btn.closed .ticket-icon-closed {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.ticket-toggle-btn.closed .ticket-icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

/* Effetto pulsazione quando attivo */
.ticket-toggle-btn.open {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Tooltip per i controlli ticket */
.ticket-controls [title] {
    position: relative;
}

.ticket-controls [title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.ticket-controls [title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

.db-query-results {
        margin: 20px;
    }
    .db-query-filters {
        background-color: #f8f9fa;
        padding: 20px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    .db-query-filters h4 {
        margin-top: 0;
        margin-bottom: 15px;
        color: #333;
    }
    .filter-group {
        display: inline-block;
        margin-right: 20px;
        margin-bottom: 0;
        vertical-align: top;
    }
    .filter-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: #555;
    }
    .db-filter {
        padding: 8px 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        min-width: 150px;
        background-color: white;
    }
    .db-filter:focus {
        outline: none;
        border-color: #007cba;
        box-shadow: 0 0 0 1px #007cba;
    }
    .reset-btn {
        padding: 8px 16px;
        background-color: #dc3545;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        margin-top: 20px;
    }
    .reset-btn:hover {
        background-color: #c82333;
    }
    .sidebar-buttons {
        float: right;
        margin-left: auto;
    }
    .sidebar-btn {
        padding: 8px 16px;
        background-color: #007cba;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        margin-left: 10px;
        transition: background-color 0.3s;
    }
    .sidebar-btn:hover {
        background-color: #005a87;
    }
    .sidebar {
        position: fixed;
        top: 0;
        right: -400px;
        width: 400px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    .sidebar.open {
        right: 0;
    }
    .sidebar-header {
        padding: 20px;
        background-color: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .sidebar-header h3 {
        margin: 0;
        color: #333;
    }
    .sidebar-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar-close:hover {
        color: #333;
        background-color: #e9ecef;
        border-radius: 50%;
    }
    .sidebar-content {
        padding: 20px;
    }
    .status-item, .owner-item, .prodotto-item, .cliente-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .status-label, .owner-name, .prodotto-name, .cliente-name {
        font-weight: bold;
        color: #333;
    }
    .status-count, .owner-count, .prodotto-count, .cliente-count {
        background-color: #e9ecef;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 12px;
        color: #666;
    }
    .sidebar-content hr {
        margin: 20px 0;
        border: none;
        border-top: 1px solid #e9ecef;
    }
    .sidebar-content h4 {
        margin-bottom: 10px;
        color: #333;
    }
    .status-select, .owner-select, .prodotto-select, .cliente-select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-bottom: 10px;
        font-size: 14px;
    }
    .apply-status-btn, .apply-owner-btn, .apply-prodotto-btn, .apply-cliente-btn {
        width: 100%;
        padding: 10px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s;
    }
    .apply-status-btn:hover, .apply-owner-btn:hover, .apply-prodotto-btn:hover, .apply-cliente-btn:hover {
        background-color: #218838;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    .sidebar-overlay.active {
         display: block;
     }

/* Stili per la gestione ticket */
.ticket-column {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: center;
    font-weight: bold;
    color: #495057;
}

.ticket-cell {
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
    background-color: #f8f9fa;
}

.ticket-checkbox {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

.ticket-label {
    font-size: 12px;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
}

/* Stili per le righe ticket */
.ticket-row {
    background-color: #f8f9fa;
    border-left: 4px solid #007cba;
}

.ticket-header-row {
    background-color: #e9ecef;
}

.ticket-header {
    padding: 15px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.ticket-header h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
}

.add-ticket-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.add-ticket-btn:hover {
    background-color: #218838;
}

.ticket-columns-header {
    background-color: #007cba !important;
    font-weight: bold;
    display: none !important; /* Nascosto di default */
}
.ticket-data-row.header-row {
    background-color: #007cba !important;
}
.ticket-columns-header.show td:first-child,.ticket-data-row.header-row td:first-child{background-color: #007cba !important;}
.ticket-columns-header.show {
    display: table-row !important; /* Mostra quando ha la classe 'show' */
}

/* Rimuovo la regola che nasconde la prima colonna */
td.ticket-col-header { 
    color:#fff !important;
}
.ticket-col-header {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #adb5bd;
    color: #495057;
    font-size: 13px;
    white-space: nowrap;
}

.ticket-data-row {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6; 
}
.ticket-data-row input[type="date"],.ticket-data-row input[type="text"],.date-close-expected-input-v2 input[type="date"]{ font-size: 12px !important;border: 1px solid #ced4da}
.ticket-data-row:hover {
    background-color: #f8f9fa;
}

.ticket-data-row td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #dee2e6;
}

.ticket-number {
    font-weight: bold;
    color: #007cba;
    background-color: #e7f3ff;
}

/* Stili per i select dei ticket */
.ticket-priority-select,
.ticket-status-select,
.ticket-category-select,.ticket-assigned-to,.status-ticket-select-v2 {
    width: 100%;
    padding: 9px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    background-color: white;
}

.ticket-priority-select:focus,
.ticket-status-select:focus,
.ticket-category-select:focus,.ticket-assigned-to:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

/* Colori per le priorità */
.ticket-priority-select option[value="bassa"] {
    background-color: #d4edda;
}

.ticket-priority-select option[value="media"] {
    background-color: #fff3cd;
}

.ticket-priority-select option[value="alta"] {
    background-color: #f8d7da;
}

.ticket-priority-select option[value="critica"] {
    background-color: #f5c6cb;
}

/* Stili per i campi data */
.ticket-date-open,
.ticket-date-close {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.ticket-date-open:focus,
.ticket-date-close:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

/* Stili per il campo note dei ticket */
.ticket-notes {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    resize: vertical;
    min-height: 40px;
}

.ticket-notes:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

/* Stili per il campo descrizione del ticket */
.ticket-description-row {
    background-color: #f8f9fa;
}

.ticket-description-cell {
    padding: 15px !important;
    border: 2px solid #007cba;
    border-radius: 8px;
    background-color: #ffffff;
}

.ticket-description-container {
    width: 100%;
}

.ticket-description-label {
    display: block;
    font-weight: bold;
    color: #007cba;
    font-size: 14px;
    margin-bottom: 5px;
}

.ticket-description {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    background-color: #ffffff;
}

.ticket-description:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.ticket-description::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Stili per il campo note */
.ticket-notes {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 40px;
}

.ticket-notes:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.ticket-notes::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Stili per il lead time */
.ticket-leadtime {
    font-weight: bold;
    color: #495057;
    background-color: #e9ecef;
}

/* Stili per le azioni */
.ticket-actions {
    text-align: center;
}

.remove-ticket-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.remove-ticket-btn:hover {
    background-color: #f8d7da;
}

/* Responsive design per i ticket */
@media (max-width: 1200px) {
    .ticket-col-header {
        font-size: 12px;
        padding: 8px 4px;
    }
    
    .ticket-data-row td {
        padding: 6px 4px;
    }
    
    .ticket-priority-select,
    .ticket-status-select,
    .ticket-category-select,
    .ticket-date-open,
    .ticket-date-close {
        font-size: 12px;
        padding: 4px 6px;
    }
}

@media (max-width: 768px) {
    .ticket-header h4 {
        font-size: 14px;
    }
    
    .add-ticket-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .ticket-col-header {
        font-size: 11px;
        padding: 6px 2px;
    }
    
    .ticket-data-row td {
        padding: 4px 2px;
    }
    
    .ticket-priority-select,
    .ticket-status-select,
    .ticket-category-select,
    .ticket-date-open,
    .ticket-date-close {
        font-size: 11px;
        padding: 3px 4px;
    }
    
    .remove-ticket-btn {
        font-size: 14px;
        padding: 2px 4px;
    }
}
     .status-add-section, .owner-add-section, .prodotto-add-section, .cliente-add-section {
         margin-bottom: 20px;
     }
     .status-input, .owner-input, .prodotto-input, .cliente-input {
         width: 100%;
         padding: 8px 12px;
         border: 1px solid #ccc;
         border-radius: 4px;
         margin-bottom: 10px;
         font-size: 14px;
     }
     .select-container {
         position: relative;
         margin-bottom: 10px;
     }
     .prodotto-select {
         width: 100%;
         padding: 8px 12px;
         border: 1px solid #ccc;
         border-radius: 4px;
         font-size: 14px;
         background-color: white;
         cursor: pointer;
     }
     .prodotto-select:focus {
         outline: none;
         border-color: #007cba;
         box-shadow: 0 0 0 1px #007cba;
     }
     .select-container .search-input {
         width: 100%;
         padding: 8px 12px;
         border: 1px solid #ccc;
         border-radius: 4px;
         font-size: 14px;
         display: none;
     }
     .select-container.search-mode .prodotto-select {
         display: none;
     }
     .select-container.search-mode .search-input {
         display: block;
     }
     .add-btn {
         width: 100%;
         padding: 10px;
         background-color: #007cba;
         color: white;
         border: none;
         border-radius: 4px;
         cursor: pointer;
         font-size: 14px;
         transition: background-color 0.3s;
     }
     .add-btn:hover {
         background-color: #005a87;
     }
     .status-list-item, .owner-list-item {
         display: flex;
         justify-content: space-between;
         align-items: center;
         padding: 10px;
         border: 1px solid #e9ecef;
         border-radius: 4px;
         margin-bottom: 8px;
         background-color: #f8f9fa;
     }
     .status-list-item.editing, .owner-list-item.editing, .prodotto-list-item.editing, .cliente-list-item.editing {
         background-color: #fff3cd;
         border-color: #ffeaa7;
     }
     .prodotto-list-item, .cliente-list-item {
         display: flex;
         flex-direction: column;
         padding: 12px 0;
         border-bottom: 1px solid #f0f0f0;
         gap: 8px;
     }
     .prodotto-list-item .prodotto-main-row {
         display: flex;
         align-items: flex-start;
         justify-content: space-between;
         width: 100%;
     }
     .status-value, .owner-value {
         flex-grow: 1;
         font-weight: bold;
         color: #333;
     }
     .owner-details, .prodotto-details, .cliente-details {
         flex-grow: 1;
     }
     .owner-nome, .prodotto-name, .cliente-name {
         font-weight: bold;
         color: #333;
         display: block;
     }
     .owner-email, .cliente-email {
         font-size: 12px;
         color: #666;
         display: block;
     }
     .prodotto-categoria, .prodotto-fornitore, .prodotto-codice, .cliente-azienda {
         font-size: 12px;
         color: #666;
         display: block;
     }
     .status-edit-input, .owner-edit-input {
         flex-grow: 1;
         padding: 5px 8px;
         border: 1px solid #ccc;
         border-radius: 3px;
         font-size: 14px;
         margin-right: 10px;
     }
     .status-actions, .owner-actions, .cliente-actions {
         display: flex;
         gap: 5px;
     }
     .prodotto-actions {
         display: flex;
         gap: 4px;
         flex-wrap: wrap;
         justify-content: flex-end;
         align-items: center;
         min-width: 0;
     }
     .edit-btn, .save-btn, .cancel-btn, .delete-btn {
         padding: 4px 8px;
         border: none;
         border-radius: 3px;
         cursor: pointer;
         font-size: 11px;
         transition: background-color 0.3s;
         white-space: nowrap;
     }
     .prodotto-actions .edit-btn,
     .prodotto-actions .delete-btn {
         padding: 3px 6px;
         font-size: 10px;
     }
     .edit-btn {
         background-color: #ffc107;
         color: #212529;
     }
     .edit-btn:hover {
         background-color: #e0a800;
     }
     .save-btn {
         background-color: #28a745;
         color: white;
     }
     .save-btn:hover {
         background-color: #218838;
     }
     .cancel-btn {
         background-color: #6c757d;
         color: white;
     }
     .cancel-btn:hover {
         background-color: #5a6268;
     }
     .delete-btn {
         background-color: #dc3545;
         color: white;
     }
     .delete-btn:hover {
         background-color: #c82333;
     }
     .pdf-btn {
         background-color: #17a2b8;
         color: white;
         font-size: 10px;
         padding: 3px 6px;
         border: none;
         border-radius: 3px;
         cursor: pointer;
         transition: background-color 0.3s;
         white-space: nowrap;
     }
     .pdf-btn:hover {
         background-color: #138496;
     }
     .loading-status, .loading-owner, .loading-prodotti, .loading-clienti {
         text-align: center;
         padding: 20px;
         color: #666;
         font-style: italic;
     }
     .status-error, .owner-error, .prodotti-error, .clienti-error {
         background-color: #f8d7da;
         color: #721c24;
         padding: 10px;
         border-radius: 4px;
         margin-bottom: 10px;
         border: 1px solid #f5c6cb;
     }
     .status-success, .owner-success, .prodotti-success, .clienti-success {
         background-color: #d4edda;
         color: #155724;
         padding: 10px;
         border-radius: 4px;
         margin-bottom: 10px;
         border: 1px solid #c3e6cb;
     }
     
     .status-input-group {
         display: flex;
         gap: 10px;
         margin-bottom: 10px;
         align-items: center;
     }
     
     .status-input-group .status-input {
         flex: 1;
     }
     
     .status-color-input {
         width: 50px;
         height: 38px;
         border: 1px solid #ccc;
         border-radius: 4px;
         cursor: pointer;
         padding: 0;
         background: none;
         margin-top:-10px;
     }
     
     .status-color-input::-webkit-color-swatch-wrapper {
         padding: 0;
     }
     
     .status-color-input::-webkit-color-swatch {
         border: none;
         border-radius: 3px;
     }
     
     .status-info {
         display: flex;
         align-items: center;
         gap: 10px;
         flex: 1;
     }
     
     .status-color-indicator {
         width: 20px;
         height: 20px;
         border-radius: 50%;
         border: 2px solid #fff;
         box-shadow: 0 0 0 1px #ccc;
         flex-shrink: 0;
     }
     
     .status-list-item {
         display: flex;
         align-items: center;
         justify-content: space-between;
         padding: 10px 0;
         border-bottom: 1px solid #f0f0f0;
     }
     
     .edit-form {
         background: #f9f9f9;
         border: 1px solid #ddd;
         border-radius: 4px;
         padding: 15px;
         margin: 10px 0;
     }
     
     .edit-form-field {
         margin-bottom: 10px;
     }
     
     .edit-form-field label {
         display: block;
         font-weight: bold;
         margin-bottom: 5px;
         color: #333;
     }
     
     .edit-nome-input,
     .edit-email-input,
     .edit-status-input {
         width: 100%;
         padding: 8px;
         border: 1px solid #ccc;
         border-radius: 3px;
         font-size: 14px;
         box-sizing: border-box;
     }
     
     .edit-status-color {
         width: 100%;
         height: 40px;
         padding: 0;
         border: 1px solid #ccc;
         border-radius: 3px;
         cursor: pointer;
         background: none;
     }
     
     .edit-status-color::-webkit-color-swatch-wrapper {
         padding: 0;
     }
     
     .edit-status-color::-webkit-color-swatch {
         border: none;
         border-radius: 2px;
     }
     
     .edit-form-buttons {
         margin-top: 15px;
         text-align: right;
     }
     
     .save-edit-btn,
     .cancel-edit-btn {
         padding: 8px 15px;
         margin-left: 5px;
         border: none;
         border-radius: 3px;
         cursor: pointer;
         font-size: 14px;
     }
     
     .save-edit-btn {
         background: #007cba;
         color: white;
     }
     
     .save-edit-btn:hover {
         background: #005a87;
     }
     
     .cancel-edit-btn {
         background: #666;
         color: white;
     }
     
     .cancel-edit-btn:hover {
         background: #444;
     }
     
     .file-attachment-link {
         display: inline-block;
         color: #007cba;
         text-decoration: none;
         font-weight: 500;
         transition: color 0.3s ease;
     }
     
     .file-attachment-link:hover {
         color: #005a87;
         text-decoration: underline;
     }
    
    .db-query-table {
        border-collapse: separate;
        border-spacing: 0;
        width: auto; /* Cambiato da 100% a auto per permettere alla tabella di espandersi */
        min-width: 100%;
        font-family: Arial, sans-serif;
        table-layout: fixed;
        position: relative;
        white-space: normal;
        display: table;
        margin: 0; /* Assicura che non ci siano margini */
    }
    .db-query-results {
        position: relative;
    }
    
    /* Aggiunge spazio sotto la tabella per migliorare la visualizzazione durante lo scrolling */
    .db-query-table tbody {
        padding-bottom: 20px;
    }
    .db-query-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background-color: #ffffff;
        width: 120px;
        min-width: 120px;
        box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
    }
    
    /* Assicura che la prima colonna rimanga visibile durante lo scorrimento orizzontale */
    .db-query-table tbody tr:hover td:first-child {
        background-color: #f1f1f1;
        z-index: 1;
    }
    .db-query-table th, .db-query-table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
        width: 150px;
        min-width: 150px;
        white-space: normal;
        overflow: visible;
        word-wrap: break-word;
        word-break: break-word;
        vertical-align: top;
    }
    .db-query-table th {
         background-color: #f2f2f2;
         font-weight: bold;
         position: sticky;
         top: 0;
         z-index: 2;
         box-shadow: 0 2px 5px -2px rgba(0,0,0,0.1);
     }
     .db-query-table th:first-child {
         background-color: #f2f2f2;
         z-index: 3;
         position: sticky;
         top: 0;
         left: 0;
         box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1), 0 2px 5px -2px rgba(0,0,0,0.1); /* Ombra sia a destra che in basso */
         width: 120px;
         min-width: 120px;
         box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
     }
     .db-query-table th.sortable {
         cursor: pointer;
         user-select: none;
         padding-right: 25px;
     }
     .db-query-table th.sortable:hover {
         background-color: #e9ecef;
     }
     .db-query-table th:first-child.sortable[data-sort="asc"],
     .db-query-table th:first-child.sortable[data-sort="desc"] {
         background-color: #e6f3fa;
     }
     .sort-indicator {
         position: absolute;
         right: 8px;
         top: 50%;
         transform: translateY(-50%);
         font-size: 12px;
         color: #666;
         transition: color 0.2s;
     }
     .db-query-table th[data-sort="asc"] .sort-indicator {
         color: #007cba;
     }
     .db-query-table th[data-sort="asc"] .sort-indicator::before {
         content: "▲";
     }
     .db-query-table th[data-sort="desc"] .sort-indicator {
         color: #007cba;
     }
     .db-query-table th[data-sort="desc"] .sort-indicator::before {
         content: "▼";
     }
     .db-query-table th[data-sort="none"] .sort-indicator::before {
         content: "⇅";
     }
    .db-query-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }
    .db-query-table tr:nth-child(even) td:first-child {
        background-color: #f9f9f9;
    }
    .db-query-table tr:hover {
        background-color: #f1f1f1;
    }
    .db-query-table tr:hover td:first-child {
        background-color: #f1f1f1;
    }
    

    .db-query-error {
        color: #721c24;
        background-color: #f8d7da;
        border: 1px solid #f5c6cb;
        padding: 10px;
        border-radius: 4px;
        margin: 10px 0;
    }
    .db-query-no-results {
        padding: 10px;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 4px;
    }
    .loading {
        opacity: 0.6;
        pointer-events: none;
    }
    .loading::after {
        content: "Caricamento...";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.9);
        padding: 10px 20px;
        border-radius: 4px;
        font-weight: bold;
    }
    #db-query-results-container {
        position: relative;
        width: 100%;
        overflow-x: auto;
        overflow-y: auto;
        max-height: 600px; /* Altezza massima per consentire lo scrolling verticale */
        border: 1px solid #ddd;
        border-radius: 4px;
        display: block;
    }
    
    /* Frecce di scorrimento */
    .scroll-arrows-container {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 10px;
        padding: 5px;
        background-color: rgba(242, 242, 242, 0.9);
        border-radius: 4px;
        gap: 5px;
    }
    
    .scroll-arrows {
        position: absolute;
        top: 8px;
        right: 5px;
        z-index: 10;
        display: flex;
        background-color: rgba(242, 242, 242, 0.9); /* Sfondo semi-trasparente per migliorare la visibilità */
        border-radius: 4px;
        padding: 2px;
        gap: 3px;
        opacity: 1;
        visibility: visible;
    }
    
    .scroll-arrow {
        background: rgba(0, 124, 186, 0.8);
        color: white;
        border: none;
        border-radius: 3px;
        width: 24px;
        height: 22px;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        margin: 0 1px;
    }
    
    .scroll-arrow:hover {
        background: rgba(0, 124, 186, 1);
        transform: scale(1.1);
    }
    
    .scroll-arrow:disabled {
        background: rgba(128, 128, 128, 0.5);
        cursor: not-allowed;
        transform: none;
    }
    
    /* Barra di scorrimento personalizzata */
    #db-query-results-container::-webkit-scrollbar {
        height: 12px;
    }
    
    #db-query-results-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 6px;
    }
    
    #db-query-results-container::-webkit-scrollbar-thumb {
        background: #007cba;
        border-radius: 6px;
        border: 2px solid #f1f1f1;
    }
    
    #db-query-results-container::-webkit-scrollbar-thumb:hover {
        background: #005a87;
    }
    
    /* Stili per dispositivi mobili */
    @media screen and (max-width: 768px) {
        .db-query-filters .filter-group {
            display: block;
            width: 100%;
            margin-bottom: 15px;
        }
        /* Manteniamo la larghezza fissa delle colonne anche su mobile */
        .db-query-table th, .db-query-table td {
            width: 120px;
            min-width: 120px;
        }
        .db-query-table th:first-child, .db-query-table td:first-child {
            width: 100px;
            min-width: 100px;
        }
    }
    
    /* Larghezza colonne per desktop */
    .db-query-table th, .db-query-table td {
        width: 140px;
        min-width: 140px;
        white-space: normal;
        overflow: visible;
        word-wrap: break-word;
        word-break: break-word;
    }
    .db-query-table th:first-child, .db-query-table td:first-child {
        width: 120px;
        min-width: 120px;
    }
    /* Colonne più larghe per contenuti lunghi */
     .db-query-table th:nth-child(3), .db-query-table td:nth-child(3), /* Oggetto */
     .db-query-table th:nth-child(4), .db-query-table td:nth-child(4), /* Corpo */
     .db-query-table th:nth-child(5), .db-query-table td:nth-child(5) { /* Riepilogo AI */
         width: 200px;
         min-width: 200px;
         white-space: normal;
         word-wrap: break-word;
         word-break: break-word;
     }
     
     /* Stili per i select dello status */
     .status-select {
         width: 100%;
         padding: 5px 8px;
         border: 1px solid #ddd;
         border-radius: 4px;
         background-color: #fff;
         font-size: 13px;
         transition: all 0.3s ease;
     }
     
     .status-select:focus {
         outline: none;
         border-color: #007cba;
         box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
     }
     
     .status-select:disabled {
         opacity: 0.6;
         cursor: not-allowed;
     }
     
     .status-cell {
         position: relative;
     }
     
     .status-update-success {
         position: absolute;
         right: 5px;
         top: 50%;
         transform: translateY(-50%);
         color: #28a745;
         font-weight: bold;
         font-size: 16px;
         animation: fadeInOut 2s ease-in-out;
     }
     
     @keyframes fadeInOut {
         0% { opacity: 0; transform: translateY(-50%) scale(0.5); }
         50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
         100% { opacity: 0; transform: translateY(-50%) scale(1); }
     }
     
     .owner-select {
         width: 100%;
         padding: 4px 8px;
         border: 1px solid #ddd;
         border-radius: 4px;
         background-color: #fff;
         font-size: 12px;
         cursor: pointer;
     }
     
     .owner-select:disabled {
         opacity: 0.6;
         cursor: not-allowed;
     }
     
     .owner-cell {
         position: relative;
         min-width: 120px;
     }
     
     .owner-update-success {
         position: absolute;
         right: 5px;
         top: 50%;
         transform: translateY(-50%);
         color: #28a745;
         font-weight: bold;
         font-size: 16px;
         animation: fadeInOut 2s ease-in-out;
     }
     
     /* Stili per celle di testo con toggle */
     .text-cell {
         max-width: 200px;
         word-wrap: break-word;
         word-break: break-word;
         white-space: normal;
         position: relative;
         overflow-wrap: break-word;
         hyphens: auto;
     }
     
     .text-preview, .text-full {
         display: block;
         line-height: 1.4;
         margin-bottom: 5px;
         word-wrap: break-word;
         word-break: break-word;
         white-space: normal;
         overflow-wrap: break-word;
         max-width: 100%;
         width: 100%;
         box-sizing: border-box;
     }
     
     .toggle-text {
         background-color: #007cba;
         color: white;
         border: none;
         padding: 2px 6px;
         font-size: 11px;
         border-radius: 3px;
         cursor: pointer;
         transition: background-color 0.2s;
     }
     
     .toggle-text:hover {
         background-color: #005a87;
     }
     
     .toggle-text:focus {
         outline: none;
         box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3);
     }
     .text-cell .pdf-link {
        background-color: #007cba; 
         color: #ffffff;
         text-decoration: none;
         font-size: 10px;
         display: inline-block;
         margin: 5px 2px 0px;
         border-radius: 5px;
         cursor: pointer; 
         padding: 3px 6px; 
     }
     .text-cell .pdf-link:hover {
         text-decoration: underline;
     }
     /* Stili per il bottone cronologia modifiche prodotti */
     .audit-history-btn {
         background-color: #999999; 
         color: white;
         border: none;
         padding: 3px 6px;
         font-size: 10px;
         border-radius: 3px;
         cursor: pointer;
         transition: all 0.2s ease;
         white-space: nowrap;
         margin: 0 2px;
         font-weight: 500;
         box-shadow: 0 1px 3px rgba(0,0,0,0.1);
     }
     
     .audit-history-btn:hover {
         background-color: #666666;
         transform: translateY(-1px);
         box-shadow: 0 2px 5px rgba(0,0,0,0.15);
     }
     
     .audit-history-btn:active {
         transform: translateY(0);
         box-shadow: 0 1px 3px rgba(0,0,0,0.1);
     }
     
     /* Stili per il modal cronologia modifiche prodotti */
     #product-audit-history-modal {
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         background-color: rgba(0, 0, 0, 0.5);
         z-index: 10000;
         display: flex;
         align-items: center;
         justify-content: center;
     }
     
     #product-audit-history-modal .modal-content {
         background-color: white;
         border-radius: 8px;
         width: 90%;
         max-width: 1000px;
         max-height: 90%;
         overflow: hidden;
         box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
     }
     
     #product-audit-history-modal .modal-header {
         background-color: #f8f9fa;
         padding: 15px 20px;
         border-bottom: 1px solid #dee2e6;
         display: flex;
         justify-content: space-between;
         align-items: center;
     }
     
     #product-audit-history-modal .modal-header h3 {
         margin: 0;
         color: #333;
         font-size: 18px;
     }
     
     #product-audit-history-modal .close-modal {
         background: none;
         border: none;
         font-size: 24px;
         cursor: pointer;
         color: #666;
         padding: 0;
         width: 30px;
         height: 30px;
         display: flex;
         align-items: center;
         justify-content: center;
     }
     
     #product-audit-history-modal .close-modal:hover {
         color: #000;
     }
     
     #product-audit-history-modal .modal-body {
         padding: 20px;
         max-height: calc(90vh - 120px);
         overflow-y: auto;
     }
     
     #product-audit-history-modal .loading-message,
     #product-audit-history-modal .error-message {
         text-align: center;
         padding: 40px 20px;
         font-size: 16px;
     }
     
     #product-audit-history-modal .error-message {
         color: #dc3545;
         background-color: #f8d7da;
         border: 1px solid #f5c6cb;
         border-radius: 4px;
     }
     
     #product-audit-history-modal .product-info-section {
         margin-bottom: 30px;
         padding: 15px;
         background-color: #f8f9fa;
         border-radius: 6px;
         border: 1px solid #e9ecef;
     }
     
     #product-audit-history-modal .product-info-section h4 {
         margin: 0 0 15px 0;
         color: #333;
         font-size: 16px;
     }
     
     #product-audit-history-modal .product-details p {
         margin: 8px 0;
         font-size: 14px;
     }
     
     #product-audit-history-modal .audit-history-section h4 {
         margin: 0 0 15px 0;
         color: #333;
         font-size: 16px;
     }
     
     #product-audit-history-modal .audit-controls {
         margin-bottom: 20px;
         text-align: right;
     }
     
     #product-audit-history-modal .export-btn {
         background-color: #28a745;
         color: white;
         border: none;
         padding: 8px 16px;
         font-size: 12px;
         border-radius: 4px;
         cursor: pointer;
         margin-left: 10px;
         transition: background-color 0.2s;
     }
     
     #product-audit-history-modal .export-btn:hover {
         background-color: #218838;
     }
     
     /* Stili per la timeline della cronologia modifiche prodotti - Allineati con la comparazione */
     #product-audit-history-modal .audit-timeline {
         position: relative;
         padding: 20px 0;
         margin: 20px 0;
     }
     
     #product-audit-history-modal .audit-timeline::before {
         content: '';
         position: absolute;
         left: 30px;
         top: 0;
         bottom: 0;
         width: 2px;
         background: linear-gradient(to bottom, #007cba, #17a2b8);
         border-radius: 1px;
     }
     
     #product-audit-history-modal .audit-record {
         position: relative;
         margin-bottom: 30px;
         padding-left: 60px;
         background: #fff;
         border-radius: 12px;
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
         border: 1px solid #e9ecef;
         transition: all 0.3s ease;
         padding-top: 30px;
         padding-bottom: 20px;
         padding-right: 20px;
     }
     
     #product-audit-history-modal .audit-record:hover {
         transform: translateY(-2px);
         box-shadow: 0 8px 25px rgba(0, 124, 186, 0.15);
         border-color: #007cba;
     }
     
     #product-audit-history-modal .audit-record::before {
         content: '';
         position: absolute;
         left: -39px;
         top: 20px;
         width: 16px;
         height: 16px;
         background: #007cba;
         border: 3px solid #fff;
         border-radius: 50%;
         box-shadow: 0 0 0 3px #007cba;
         z-index: 2;
     }
     
     #product-audit-history-modal .audit-record.created::before {
         background: #28a745;
         box-shadow: 0 0 0 3px #28a745;
     }
     
     #product-audit-history-modal .audit-record.updated::before {
         background: #ffc107;
         box-shadow: 0 0 0 3px #ffc107;
     }
     
     #product-audit-history-modal .audit-record.deleted::before {
         background: #dc3545;
         box-shadow: 0 0 0 3px #dc3545;
     }
     
     #product-audit-history-modal .audit-record.certificate_generated::before {
         background: #17a2b8;
         box-shadow: 0 0 0 3px #17a2b8;
     }
     
     /* Stili per i certificati */
     .certificate-link {
         color: #007bff;
         text-decoration: none;
         font-weight: 500;
         display: inline-flex;
         align-items: center;
         gap: 5px;
     }
     
     .certificate-link:hover {
         color: #0056b3;
         text-decoration: underline;
     }
     
     .status-completed {
         color: #28a745;
         font-weight: bold;
     }
     
     .status-pending {
         color: #ffc107;
         font-weight: bold;
     }
     
     .status-failed {
         color: #dc3545;
         font-weight: bold;
     }
     
     #product-audit-history-modal .audit-timestamp {
         font-size: 14px;
         color: #fff;
         font-weight: 500;
         margin-bottom: 8px;
         display: flex;
         align-items: center;
         position: absolute;
         top: -10px;
         background: #28a745;
         padding: 2px 8px;
         border-radius: 10px;
     }
     
     #product-audit-history-modal .audit-timestamp::before {
         content: '🕒';
         margin-right: 6px;
         font-size: 12px;
     }
     
     #product-audit-history-modal .audit-action {
         font-size: 16px;
         font-weight: 600;
         color: #007cba;
         margin-bottom: 10px;
         text-transform: capitalize;
         display: flex;
         align-items: center;
     }
     
     #product-audit-history-modal .audit-action.created {
         color: #28a745;
     }
     
     #product-audit-history-modal .audit-action.updated {
         color: #ffc107;
     }
     
     #product-audit-history-modal .audit-action.deleted {
         color: #dc3545;
     }
     
     #product-audit-history-modal .audit-action::before {
         margin-right: 8px;
         font-size: 14px;
     }
     
   /*  #product-audit-history-modal .audit-action.created::before {
         content: '✅';
     }
     
     #product-audit-history-modal .audit-action.updated::before {
         content: '✏️';
     }
     
     #product-audit-history-modal .audit-action.deleted::before {
         content: '🗑️';
     }
     
     #product-audit-history-modal .audit-action.pdf_generated::before {
         content: '📄';
     }
     
     #product-audit-history-modal .audit-action.comparison_created::before {
         content: '🆕';
     }
     
     #product-audit-history-modal .audit-action.comparison_updated::before {
         content: '🔄';
     }
     
     #product-audit-history-modal .audit-action.field_updated::before {
         content: '📝';
     }*/
     
     #product-audit-history-modal .audit-field {
         background: #f8f9fa;
         padding: 8px 12px;
         border-radius: 6px;
         font-size: 14px;
         color: #495057;
         margin-bottom: 10px;
         border-left: 3px solid #007cba;
         font-weight: 500;
     }
     
     #product-audit-history-modal .audit-changes {
         margin: 15px 0;
         padding: 15px;
         background: #f8f9fa;
         border-radius: 8px;
         border: 1px solid #e9ecef;
     }
     
     #product-audit-history-modal .audit-changes .old-value {
         margin-bottom: 8px;
         padding: 8px 12px;
         border-radius: 6px;
         font-size: 14px;
         line-height: 1.4;
         background: #fff5f5;
         border-left: 3px solid #dc3545;
         color: #721c24;
     }
     
     #product-audit-history-modal .audit-changes .new-value {
         padding: 8px 12px;
         border-radius: 6px;
         font-size: 14px;
         line-height: 1.4;
         background: #f0fff4;
         border-left: 3px solid #28a745;
         color: #155724;
     }
     
     #product-audit-history-modal .audit-changes .old-value strong,
     #product-audit-history-modal .audit-changes .new-value strong {
         display: block;
         margin-bottom: 4px;
         font-size: 12px;
         text-transform: uppercase;
         letter-spacing: 0.5px;
     }
     
     #product-audit-history-modal .audit-user {
         display: flex;
         align-items: center;
         font-size: 14px;
         color: #495057;
         margin-bottom: 8px;
         font-weight: 500;
     }
     
     #product-audit-history-modal .audit-user::before {
         content: '👤';
         margin-right: 6px;
         font-size: 12px;
     }
     
     #product-audit-history-modal .audit-notes {
         background: #e7f3ff;
         padding: 10px 12px;
         border-radius: 6px;
         font-size: 14px;
         color: #0c5460;
         border-left: 3px solid #17a2b8;
         font-style: italic;
         margin-top: 10px;
     }
     
    /* #product-audit-history-modal .audit-notes::before {
         content: '📝 ';
         font-style: normal;
     }*/
     
     #product-audit-history-modal .audit-meta {
         font-size: 12px;
         color: #6c757d;
         margin-top: 10px;
         padding-top: 8px;
         border-top: 1px solid #e9ecef;
     }
     
     #product-audit-history-modal .no-history {
         text-align: center;
         padding: 40px 20px;
         color: #666;
         font-style: italic;
     }
     
     /* Stili per valori formattati */
     #product-audit-history-modal .empty-value {
         color: #6c757d;
         font-style: italic;
         font-size: 13px;
     }
     
     #product-audit-history-modal .object-placeholder {
         background: #e3f2fd;
         color: #1976d2;
         padding: 4px 8px;
         border-radius: 4px;
         font-size: 13px;
         font-weight: 500;
     }
     
     #product-audit-history-modal .long-value {
         cursor: pointer;
         color: #007cba;
         text-decoration: underline;
     }
     
     #product-audit-history-modal .long-value:hover {
         color: #005a87;
     }
     
     /* Stili per campi personalizzati */
     #product-audit-history-modal .custom-fields-list {
         background: #f8f9fa;
         border: 1px solid #dee2e6;
         border-radius: 6px;
         padding: 12px;
         margin: 8px 0;
     }
     
     #product-audit-history-modal .custom-fields-header {
         font-weight: 600;
         color: #495057;
         margin-bottom: 10px;
         font-size: 14px;
     }
     
     #product-audit-history-modal .custom-field-item {
         background: #fff;
         border: 1px solid #e9ecef;
         border-radius: 4px;
         padding: 8px;
         margin-bottom: 8px;
     }
     
     #product-audit-history-modal .custom-field-item:last-child {
         margin-bottom: 0;
     }
     
     #product-audit-history-modal .custom-field-label {
         font-size: 13px;
         color: #495057;
         margin-bottom: 4px;
     }
     
     #product-audit-history-modal .custom-field-value {
         font-size: 14px;
         color: #212529;
         margin-bottom: 4px;
     }
     
     #product-audit-history-modal .custom-field-note {
         font-size: 12px;
         color: #6c757d;
         font-style: italic;
     }
     
     /* Stili per oggetti JSON */
     #product-audit-history-modal .json-object {
         background: #f8f9fa;
         border: 1px solid #dee2e6;
         border-radius: 6px;
         padding: 10px;
         margin: 8px 0;
     }
     
     #product-audit-history-modal .object-summary {
         font-weight: 600;
         color: #495057;
         margin-bottom: 8px;
         font-size: 14px;
     }
     
     #product-audit-history-modal .object-details {
         font-size: 13px;
         color: #6c757d;
     }
     
     #product-audit-history-modal .object-details div {
         margin-bottom: 4px;
     }
     
     /* Modal per valori completi */
     .value-modal-overlay {
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         background: rgba(0, 0, 0, 0.5);
         z-index: 10000;
         display: flex;
         align-items: center;
         justify-content: center;
     }
     
     .value-modal {
         background: #fff;
         border-radius: 8px;
         box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
         max-width: 80%;
         max-height: 80%;
         width: 600px;
         display: flex;
         flex-direction: column;
     }
     
     .value-modal-header {
         padding: 20px;
         border-bottom: 1px solid #e9ecef;
         display: flex;
         justify-content: space-between;
         align-items: center;
         background: #f8f9fa;
         border-radius: 8px 8px 0 0;
     }
     
     .value-modal-header h3 {
         margin: 0;
         color: #495057;
         font-size: 18px;
         font-weight: 600;
     }
     
     .value-modal-close {
         background: none;
         border: none;
         font-size: 24px;
         color: #6c757d;
         cursor: pointer;
         padding: 0;
         width: 30px;
         height: 30px;
         display: flex;
         align-items: center;
         justify-content: center;
         border-radius: 4px;
         transition: all 0.2s ease;
     }
     
     .value-modal-close:hover {
         background: #e9ecef;
         color: #495057;
     }
     
     .value-modal-body {
         padding: 20px;
         overflow: auto;
         flex: 1;
     }
     
     .value-modal-body pre {
         background: #f8f9fa;
         border: 1px solid #e9ecef;
         border-radius: 4px;
         padding: 15px;
         margin: 0;
         white-space: pre-wrap;
         word-wrap: break-word;
         font-family: 'Courier New', monospace;
         font-size: 13px;
         line-height: 1.4;
         color: #495057;
         max-height: 400px;
         overflow: auto;
     }
     #remove-excel-file,#remove-clienti-excel-file {
	padding: 0 3px;
	margin-left: 5px; line-height: 1;
}
.excel-results p { margin-bottom:0;}
#upload-excel-btn, #upload-clienti-excel-btn {
	margin-top: 10px;
	background: green;
	color: #fff;
	border: 1px solid;
	padding: 3px;
	display: block;
	width: 100%;
}
     /* Responsive design per la timeline prodotti */
     @media (max-width: 768px) {
         #product-audit-history-modal .audit-timeline::before {
             left: 20px;
         }
         
         #product-audit-history-modal .audit-record {
             padding-left: 50px;
         }
         
         #product-audit-history-modal .audit-record::before {
             left: -29px;
             width: 12px;
             height: 12px;
         }
         
         .value-modal {
             max-width: 95%;
             max-height: 90%;
             margin: 20px;
         }
         
         .value-modal-header {
             padding: 15px;
         }
         
         .value-modal-body {
             padding: 15px;
         }
     }