.documenti-wrapper {
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Filtro con bottoni — centrato */
.documenti-filtro {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0 4px;
    justify-content: center; /* 👈 Centra i bottoni */
}

.doc-filtro-btn {
    padding: 8px 16px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.doc-filtro-btn:hover {
    background: #e0e0e0;
}

.doc-filtro-btn.active {
    background: #bd1422;
    border-color: #bd1422;
    color: white;
}

/* Elenco documenti — stile coerente con Documenti Fornitori */
.df-documenti-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.df-doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Titolo e data a SINISTRA */
.df-doc-info {
    flex: 1 1 auto;
    text-align: left; /* 👈 Allinea a sinistra */
}

.df-doc-titolo {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #333;
}

.df-doc-data {
    font-size: 13px;
    color: #777;
    margin: 0 0 8px;
}

/* Bottone download a DEstra */
.df-doc-download {
    flex: 0 0 auto;
    text-align: right;
}

.df-doc-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #bd1422;
    background: #ffffff;
    color: #bd1422;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.df-doc-btn:hover {
    background: #bd1422;
    color: #ffffff;
    transform: translateY(1px);
}

/* Responsive */
@media (max-width: 768px) {
    .df-doc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .df-doc-info {
        text-align: left;
        margin-bottom: 10px;
    }
    .df-doc-download {
        width: 100%;
        text-align: left;
    }
}