/* Scheda fornitore (v393): sezioni a schede, categorie compatte, trasporti */
.fornitore-scheda .barra-schede{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 14px;padding-bottom:10px;border-bottom:1px solid #d6e0e8}
.fornitore-scheda .azioni-scheda{position:sticky;bottom:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px;padding:12px 0 4px;background:inherit;border-top:1px solid #d6e0e8}
.fornitore-scheda .sede-operativa{margin:10px 0 0}
.fornitore-scheda .sede-operativa>summary{cursor:pointer;padding:6px 0}
.cat-scelte{display:flex;flex-wrap:wrap;gap:6px;min-height:34px;margin:6px 0 10px;align-items:center}
.chip-cat{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:3px 10px;border-radius:999px;border:1px solid #9cc4dc;background:#e0eef6;color:#0369a1;font-size:13px;font-weight:600;cursor:pointer}
.chip-cat:hover{background:#cfe4f1}
.cat-cerca{max-width:360px;margin:4px 0 8px}
.cat-elenco{column-width:250px;column-gap:18px;max-height:280px;overflow-y:auto;padding:8px 10px;border:1px solid #d6e0e8;border-radius:12px}
.cat-elenco .check{break-inside:avoid;margin:2px 0;font-size:14px}
.trasporto-modo{border:1px solid #d6e0e8;border-radius:14px;padding:10px 14px;margin:0 0 10px}
.trasporto-modo.attivo{border-color:#9cc4dc;background:#f5f9fc}
.trasporto-modo .campi{margin-top:6px}
.spiega-trasporto{grid-column:1/-1;color:#4f6579}
html[data-theme="dark"] .fornitore-scheda .barra-schede,html[data-theme="dark"] .fornitore-scheda .azioni-scheda,html[data-theme="dark"] .cat-elenco,html[data-theme="dark"] .trasporto-modo{border-color:#35434f}
html[data-theme="dark"] .chip-cat{background:#233e4e;border-color:#354856;color:#76cbf9}
html[data-theme="dark"] .chip-cat:hover{background:#2c4b5e}
html[data-theme="dark"] .trasporto-modo.attivo{background:#1f2a31;border-color:#354856}
html[data-theme="dark"] .spiega-trasporto{color:#a9b8c6}
/* v397: titolo e schede sempre in alto, Salva/Chiudi/Elimina sempre in basso; niente barra Salva/Chiudi fluttuante in alto */
.fornitore-scheda .testa-scheda{position:sticky;top:0;z-index:6;background:inherit;padding-top:4px}
.fornitore-scheda .testa-scheda h2{margin-bottom:0}
.fornitore-scheda .barra-schede{margin-top:8px}
body:has(.fornitore-scheda) #modale-barra{display:none}
/* v401: stessa scheda a sezioni anche per i clienti */
body:has(.cliente-scheda) #modale-barra{display:none}
.cliente-scheda .azioni-rapide{margin:0 0 12px}
