/* Stili per la tabella dei clienti */
#clienti-certificati-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#clienti-certificati-table th,
#clienti-certificati-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

#clienti-certificati-table th {
    background-color: #f2f2f2;
    cursor: pointer;
}

#clienti-certificati-table tr:hover {
    background-color: #fafafa;
}

table tr:first-child td {
    border-top: none !important;
}

table td {
	border-top: none !important;
}

table {
    border: none !important;
}

.certificato-scaduto {
    background-color: #ffd6d6 !important; /* rosso chiaro */
}

.certificato-valido {
    background-color: #d6ffd6 !important; /* verde chiaro */
}

.admin-filter-section {
    margin-bottom: 20px;
}

.admin-filter-section input[type="text"],
.admin-filter-section input[type="date"] {
    padding: 5px;
    margin-right: 10px;
}

.admin-filter-section button {
    margin-left: 5px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-row .filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-controls {
    padding: 10px 0px;
}

#clienti-certificati-table .btn-salva {
    padding: 4px 10px;
    font-size: 12px;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 5px 10px;
    margin-right: 5px;
    border: 1px solid #ccc;
    background: #fff;
    text-decoration: none;
}

.pagination .current {
    font-weight: bold;
    background-color: #e0e0e0;
}


.sfondo-rosso {
    background-color: #f8d7da !important;
}
.sfondo-verde {
    background-color: #d4edda !important;
}
.sfondo-arancione {
    background-color: #fff3cd !important;
}
.sfondo-grigio {
    background-color: #e2e3e5 !important;
}


.widefat td, .widefat th {
    color: #000000 !important;
}

#contenitore_risultati table.widefat tbody tr {
    box-shadow: 0 0 0 1px #ccc;
    border-radius: 4px;
    margin-bottom: 4px;
}


#contenitore_risultati table.widefat tbody tr:not(:last-child) {
    margin-bottom: 6px;
}

p.description {
    font-style: italic;
    color: #555;
    margin-top: 5px;
}

/* ================================
   SEZIONE: Layout generale
================================== */
.cc-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 10px;
    font-family: 'Inter', sans-serif;
}

.cc-wrapper h2,
.cc-wrapper h3,
.cc-wrapper h4 {
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

/* ================================
   FORM DI RICERCA
================================== */
.cc-search-form {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.cc-search-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.cc-search-form input,
.cc-search-form select {
    width: 260px;
    padding: 8px 10px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}

.cc-search-form button {
    background: #3a66f7;
    border: none;
    padding: 8px 16px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 4px;
    transition: 0.2s;
}

.cc-search-form button:hover {
    background: #264dc7;
}

/* ================================
   TABELLA RISULTATI
================================== */
.cc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    font-size: 15px;
}

.cc-table th {
    text-align: left;
    padding: 10px 8px;
    background: #f2f2f2;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #ddd;
	text-align: center !important;
}

.cc-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.cc-table tr:hover td {
    background: #fafafa;
}

/* ================================
   LINK DI AZIONE
================================== */
.cc-actions a {
    margin-right: 12px;
    color: #1b4fcc;
    text-decoration: none;
    font-weight: 500;
}

.cc-actions a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .cc-search-form input,
    .cc-search-form select {
        width: 100%;
    }
}