﻿.filter-panel {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 2px rgba(0,123,255,.25);
}

.btn-filter, .btn-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-filter {
    background-color: #007bff;
    color: white;
}

    .btn-filter:hover {
        background-color: #0056b3;
    }

.btn-reset {
    background-color: #6c757d;
    color: white;
    margin-left: 10px;
}

    .btn-reset:hover {
        background-color: #545b62;
        color: white;
    }

.results-panel {
    margin-top: 30px;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 2px 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.separatori .data-table th,
.separatori .data-table td {
    padding: 2px 0;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.sconti .data-table th,
.sconti .data-table td {
    padding: 10px 10px;
    text-align: left;
}

.sconti .data-table tr {
    border-top: 1px solid #dee2e6;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.data-table tbody tr:hover {
    background-color: #f6f6f8;
}

.no-results {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

h3 {
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.prezzi th:nth-of-type(1), .prezzi td:nth-of-type(1) {
    width: auto; /* dimensione misurata su contenuto */
    min-width: 50px; /* larghezza minima */
    max-width: 90px; /* larghezza massima */
    white-space: wrap; /* evita a capo del contenuto */
    overflow: hidden; /* nasconde testo in eccesso */
    text-overflow: ellipsis; /* mostra “…” per il testo troncato */
}

.prezzi th:nth-of-type(2), .prezzi td:nth-of-type(2) {
    width: auto; /* dimensione misurata su contenuto */
    min-width: 50px; /* larghezza minima */
    max-width: 120px; /* larghezza massima */
    white-space: wrap; /* evita a capo del contenuto */
    overflow: hidden; /* nasconde testo in eccesso */
    text-overflow: ellipsis; /* mostra “…” per il testo troncato */
}

.prezzi th:nth-of-type(3), .prezzi td:nth-of-type(3) {
    width: auto; /* dimensione misurata su contenuto */
    min-width: 50px; /* larghezza minima */
    max-width: 130px; /* larghezza massima */
    white-space: wrap; /* evita a capo del contenuto */
    overflow: hidden; /* nasconde testo in eccesso */
    text-overflow: ellipsis; /* mostra “…” per il testo troncato */
}

.prezzi th:nth-of-type(4), .prezzi td:nth-of-type(4) {
    width: auto; /* dimensione misurata su contenuto */
    min-width: 50px; /* larghezza minima */
    max-width: 100px; /* larghezza massima */
    white-space: wrap; /* evita a capo del contenuto */
    overflow: hidden; /* nasconde testo in eccesso */
    text-overflow: ellipsis; /* mostra “…” per il testo troncato */
}

.prezzi th:nth-of-type(5), .prezzi td:nth-of-type(5) {
    width: auto; /* dimensione misurata su contenuto */
    min-width: 50px; /* larghezza minima */
    max-width: 100px; /* larghezza massima */
    white-space: wrap; /* evita a capo del contenuto */
    overflow: hidden; /* nasconde testo in eccesso */
    text-overflow: ellipsis; /* mostra “…” per il testo troncato */
}

.prezzi th:nth-of-type(6), .prezzi td:nth-of-type(6) {
    width: auto; /* dimensione misurata su contenuto */
    min-width: 50px; /* larghezza minima */
    max-width: 500px; /* larghezza massima */
    white-space: wrap; /* evita a capo del contenuto */
    overflow: hidden; /* nasconde testo in eccesso */
    text-overflow: ellipsis; /* mostra “…” per il testo troncato */
}

.prezzi th:nth-of-type(7), .prezzi td:nth-of-type(7) {
    width: auto; /* dimensione misurata su contenuto */
    min-width: 50px; /* larghezza minima */
    max-width: 20px; /* larghezza massima */
}

input[type="number"].no-step::-webkit-inner-spin-button,
input[type="number"].no-step::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type="number"].no-step {
    -moz-appearance: textfield;
}

.camereDiMiscela .data-table th, .camereDiMiscela .data-table td {
    padding: 2px 4px;
}

p, td, th {
    font-size: 14px !important;
}

body{
    background-color: #f8f9fa;
}

.sconti .data-table tr:nth-last-of-type(1) td{
    text-align: center;
}