/* Appareils : vignettes sombres, filtres avec compteurs */
.dv-panel{background:#0C447C!important;color:#fff;border:0!important;border-radius:16px!important}
.dv-panel .toolbar input{background:#042C53!important;color:#fff!important;border:1px solid #185FA5!important;border-radius:10px}
.dv-panel .toolbar input::placeholder{color:#85B7EB}
.dv-panel .hint{color:#B5D4F4!important}
.dv-filters{display:flex;flex-direction:column;gap:8px;margin:4px 0 14px}
.dv-row{display:flex;flex-wrap:wrap;gap:8px}
.dv-chip{width:auto;min-height:0;padding:6px 13px;border-radius:999px!important;background:#042C53!important;color:#fff!important;border:1px solid #185FA5!important;font-weight:600;font-size:.85rem;box-shadow:none!important}
.dv-chip:hover{border-color:#85B7EB!important}
.dv-chip.on{background:#185FA5!important;border-color:#85B7EB!important}
.dv-chip.dv-chip-amber{border-color:#EF9F27!important}
.dv-chip.dv-chip-amber.on{background:#854F0B!important}
.dv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:12px}
.dv-card{background:#042C53;color:#fff;border:1px solid #185FA5;border-radius:14px;padding:13px;display:flex;flex-direction:column;gap:6px;min-width:0}
.dv-card:hover{border-color:#85B7EB}
.dv-card.dv-workshop{outline:2px solid #EF9F27;outline-offset:-2px}
.dv-top{display:flex;align-items:center;gap:10px}
.dv-ic{width:40px;height:40px;border-radius:10px;background:#185FA5;color:#fff;display:flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:800;flex:none}
.dv-name{flex:1;min-width:0}
.dv-name strong{display:block;color:#fff;font-size:.98rem;line-height:1.25;overflow-wrap:anywhere}
.dv-name small{color:#B5D4F4;font-size:.78rem}
.dv-status{display:flex;margin-bottom:2px}
.dv-name strong{word-break:normal;overflow-wrap:break-word;hyphens:none}
.dv-pill{flex:none;font-size:.7rem;font-weight:700;padding:3px 8px;border-radius:999px;color:#fff;white-space:nowrap}
.dv-amber{background:#854F0B}.dv-green{background:#3B6D11}
.dv-line{margin:0;color:#B5D4F4;font-size:.86rem;overflow-wrap:anywhere}.dv-line b{color:#fff}
.dv-client{background:none!important;border:0!important;padding:0!important;min-height:0!important;width:auto!important;color:#fff!important;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;box-shadow:none!important}
.dv-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:6px}
.dv-actions button{width:auto;min-height:0;padding:6px 10px;border-radius:8px;background:transparent!important;color:#fff!important;border:1px solid #85B7EB!important;font-size:.84rem;box-shadow:none!important}
.dv-actions button:hover{background:#185FA5!important}
.dv-actions .dv-main{background:#1D9E75!important;border-color:#1D9E75!important}
.dv-actions .dv-main:hover{background:#0F6E56!important}

/* Appareils en liste (14/11) : mêmes lignes que les Factures, colonnes adaptées */
.dv-list-panel .dr-row{grid-template-columns:150px minmax(0,1fr) 200px 210px 270px}
.dv-list-panel .dv-serial{font-weight:700;overflow-wrap:anywhere;color:#fff}
.dv-list-panel .dv-serial small{display:block;font-weight:400;color:#E6F1FB;font-size:.75rem}
.dv-list-panel .dv-client-link{font-weight:600;font-size:.8rem}
.dv-list-panel .dv-filters{margin:4px 0 12px}
@media(max-width:1100px){.dv-list-panel .dr-row{grid-template-columns:130px minmax(0,1fr) 160px 180px 240px}}
@media(max-width:900px){.dv-list-panel .dr-row{grid-template-columns:1fr auto}.dv-list-panel .dv-serial{grid-column:1/-1}}

/* Boutons à position fixe : alignés à gauche, toujours dans le même ordre */
.dv-list-panel .dv-actions-fixed{justify-content:flex-start!important}
.dv-list-panel .dr-row{align-items:center}
.dv-list-panel .dr-state{justify-content:center}

/* Écrans moyens (≤ 1 250 px) : boutons sur une 2e ligne, colonnes conservées (plus de nom écrasé ni de débordement) */
@media(max-width:1250px){.dv-list-panel .dr-row{grid-template-columns:130px minmax(0,1fr) 150px 170px}.dv-list-panel .dv-actions-fixed{grid-column:1/-1}}
@media(max-width:900px){.dv-list-panel .dr-row{grid-template-columns:1fr auto}.dv-list-panel .dv-serial,.dv-list-panel .dr-who,.dv-list-panel .dr-state{grid-column:1/-1}}
