/* AUTOCRM PRO V16.5 — ajout discret à la fiche client existante, aucun autre style modifié. */
#v165ClientPhotos{margin:14px 0 16px;padding:18px 20px}
#v165ClientPhotos .v165-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#v165ClientPhotos h3{margin:0;font-size:1.08rem}
#v165ClientPhotos .v165-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#v165ClientPhotos button{min-height:38px}
#v165ClientPhotos .v165-count{font-size:13px;color:var(--ui-muted,#76737b)}
#v165ClientPhotos .v165-strip{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:14px}
#v165ClientPhotos .v165-tile{width:92px;height:76px;position:relative;border-radius:9px;overflow:hidden;border:1px solid var(--ui-line,#dfdde2);padding:0;background:#f6f6f7;cursor:pointer}
#v165ClientPhotos .v165-tile:focus-visible{outline:3px solid #c21640;outline-offset:2px}
#v165ClientPhotos .v165-tile img{width:100%;height:100%;object-fit:cover}
#v165ClientPhotos .v165-tile[aria-current="true"]{border:2px solid #c21640}
#v165ClientPhotos .v165-star{position:absolute;left:4px;top:4px;color:#fff;background:#bd1740;border-radius:6px;font-size:10px;padding:2px 5px}
#v165ClientPhotos .v165-empty{margin:12px 0 0;color:var(--ui-muted,#777);font-size:13px}
#v165ClientPhotos .v165-info{font-size:12px;color:var(--ui-muted,#777);margin:10px 0 0}
#v165ClientPhotos .v165-notice{font-size:13px;margin:8px 0 0;white-space:pre-wrap}
#v165ClientPhotos .v165-error{color:#ae173c}
#v165ClientPhotos .v165-pending{margin-top:12px;border:1px solid #edd4dc;background:#fff9fb;border-radius:12px;padding:12px}
#v165ClientPhotos .v165-pending h4{margin:0 0 8px;font-size:13px}
#v165ClientPhotos .v165-pending-actions{margin-top:11px;display:flex;gap:9px;flex-wrap:wrap}
#v165ClientPhotos input[type=file]{display:none}
#v165PhotoLightbox{width:min(900px,calc(100vw - 28px));max-height:92vh;border:0;border-radius:16px;padding:0;overflow:auto;background:white;box-shadow:0 25px 60px #1117}
#v165PhotoLightbox::backdrop{background:#13151cc7}
#v165PhotoLightbox .v165-light-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #ddd}
#v165PhotoLightbox .v165-light-head h3{margin:0;font-size:16px}
#v165PhotoLightbox .v165-light-close{border:1px solid #ddd;background:#fff;color:#333;border-radius:9px;min-width:42px;min-height:42px;font-size:20px}
#v165PhotoLightbox .v165-light-image{width:100%;max-height:65vh;object-fit:contain;background:#f4f5f6;display:block}
#v165PhotoLightbox .v165-light-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 16px}
#v165PhotoLightbox .v165-light-footer button{min-height:38px}
@media(max-width:600px){#v165ClientPhotos{padding:13px}#v165ClientPhotos .v165-tile{width:75px;height:65px}}
