/* Carnet d'entretien (photo cliquable) + Mes documents : style sobre */
#detail-content .pv3-ml .ml-hero{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start}
#detail-content .pv3-ml .ml-card{border:1px solid #eceef2;border-radius:16px;box-shadow:none;background:#fff}
#detail-content .ml-hint{margin:6px 0 8px;font-size:12px;color:#6b7280}
#detail-content .ml-diag{height:auto;aspect-ratio:1/1;background:#fff;border:1px solid #eceef2;border-radius:14px;margin-top:0}
#detail-content .ml-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#detail-content .ml-hs{position:absolute;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;border:3px solid #fff;color:#fff;font:800 15px inherit;font-family:inherit;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px rgba(17,24,39,.25);padding:0}
#detail-content .ml-hs.g{background:#16a34a}#detail-content .ml-hs.o{background:#f59e0b}
#detail-content .ml-hs.sel{box-shadow:0 0 0 6px rgba(229,33,58,.25),0 4px 12px rgba(17,24,39,.25)}
#detail-content .ml-sel{margin-top:14px;border:1px solid #e5213a;border-radius:14px;padding:14px 16px;display:grid;gap:8px}
#detail-content .ml-sel h4{margin:0;font-size:20px}#detail-content .ml-k{color:#e5213a;font-weight:700;font-size:12px}
#detail-content .ml-st{display:flex;align-items:center;gap:10px;border-radius:10px;padding:10px 12px;font-weight:700;font-size:14px}
#detail-content .ml-st i{width:24px;height:24px;border-radius:50%;color:#fff;display:grid;place-items:center;font-style:normal}
#detail-content .ml-st.g{background:#ecfdf3;color:#166534}#detail-content .ml-st.g i{background:#16a34a}
#detail-content .ml-st.o{background:#fffbeb;color:#92400e}#detail-content .ml-st.o i{background:#f59e0b}
#detail-content .ml-f{display:grid;grid-template-columns:1fr 1fr;gap:8px}#detail-content .ml-f div{background:#f5f6f8;border-radius:10px;padding:8px 10px}
#detail-content .ml-f small{display:block;color:#6b7280;font-size:11px}#detail-content .ml-f b{font-size:14px}
#detail-content .ml-sec{font-size:12px;font-weight:700;color:#374151}
#detail-content .ml-h div{display:flex;justify-content:space-between;gap:8px;font-size:13px;padding:6px 0;border-top:1px solid #eceef2}#detail-content .ml-h small{color:#6b7280}
#detail-content .ml-none{margin:0;color:#6b7280;font-size:13px}
#detail-content .ml-addp{width:100%;justify-self:stretch}
/* historique : blanc, plus de papier beige */
#detail-content .ml-paper{background:#fff;border:1px solid #eceef2;border-radius:16px;box-shadow:none}
#detail-content .ml-paper .pv3-chip{background:#f3f4f6;color:#374151}#detail-content .ml-paper .pv3-chip.on{background:#e5213a;color:#fff}
/* documents : liste */
#detail-content .pv3-docs .pv3-grid{grid-template-columns:1fr;gap:0;border:1px solid #eceef2;border-radius:14px;overflow:hidden}
#detail-content .pv3-docs .pv3-doc{display:grid;grid-template-columns:64px minmax(0,1fr) auto auto auto;align-items:center;gap:14px;border-radius:0;box-shadow:none;border-top:1px solid #eceef2;padding:10px 14px;background:#fff}
#detail-content .pv3-docs .pv3-doc:first-child{border-top:0}
#detail-content .pv3-docs .pv3-th{width:64px;height:48px;border-radius:8px;font-size:22px;overflow:hidden}
#detail-content .pv3-docs .pv3-th img{width:100%;height:100%;object-fit:cover;display:block}
#detail-content .pv3-pill{display:inline-block;font-size:12px;font-weight:600;color:#374151;background:#f3f4f6;border-radius:6px;padding:3px 9px;margin-top:3px}
#detail-content .pv3-docs .pv3-dropcard{display:flex;justify-content:center;gap:10px;min-height:0;padding:16px;border:0;border-top:1px dashed #cfd4dc;background:#fafafa}
#detail-content .pv3-docs .pv3-dropcard i{font-size:22px}
#detail-content .pv3-docs .pv3-chip{background:transparent;border-radius:0;padding:0 0 8px;margin-right:12px;border-bottom:2px solid transparent;color:#6b7280}
#detail-content .pv3-docs .pv3-chip.on{background:transparent;color:#111827;border-bottom-color:#e5213a}
#detail-content .pv3-docs .pv3-safe{background:transparent;color:#6b7280;padding:0;font-weight:500;font-size:12px}
@media(max-width:860px){#detail-content .pv3-ml .ml-hero{grid-template-columns:1fr}#detail-content .pv3-docs .pv3-doc{grid-template-columns:52px minmax(0,1fr) auto;}#detail-content .pv3-docs .pv3-lock{display:none}}
#detail-content .ml-hs{border-radius:50%!important;min-height:0!important;min-width:0!important;width:34px!important;height:34px!important;padding:0!important;line-height:1}
#detail-content .ml-sel{margin:0 0 14px}
#detail-content .pv3-docs .pv3-del{width:36px!important;height:36px!important;min-height:0!important;padding:0!important;border:1px solid #dfe2e8!important;border-radius:10px!important;background:#fff!important;position:static!important;box-shadow:none!important;display:grid;place-items:center}
#detail-content .pv3-docs .pv3-lock{white-space:nowrap}
html body #detail-content .ml-hs{border-radius:50%!important;width:34px!important;height:34px!important;min-height:34px!important;box-shadow:0 4px 12px rgba(17,24,39,.25)!important}
html body #detail-content .ml-hs.sel{box-shadow:0 0 0 6px rgba(229,33,58,.25),0 4px 12px rgba(17,24,39,.25)!important}
html body #detail-content .ml-hs.g{background:#16a34a!important}html body #detail-content .ml-hs.o{background:#f59e0b!important}
html body #detail-content .pv3-docs .pv3-del{width:auto!important;height:38px!important;min-height:38px!important;padding:0 14px!important;gap:7px;display:inline-flex!important;align-items:center;font:700 13px inherit;font-family:inherit;color:#c4122b!important;border:1.5px solid #f3b4bd!important;background:#fff5f6!important;border-radius:10px!important;cursor:pointer}
html body #detail-content .pv3-docs .pv3-del svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html body #detail-content .pv3-docs .pv3-del:hover,html body #detail-content .pv3-docs .pv3-del:focus-visible{background:#c4122b!important;color:#fff!important;border-color:#c4122b!important}
@media(max-width:860px){html body #detail-content .pv3-docs .pv3-del span,html body #detail-content .pv3-docs .pv3-del{padding:0 10px!important}}
/* fenêtre plus grande + grilles qui s'adaptent */
@media(min-width:861px){#detail.pb-on{width:min(1140px,calc(100vw - 24px))!important;max-width:1140px!important;max-height:calc(100dvh - 24px)!important;padding:26px!important}}
#detail-content .pv3-ml .ml-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
@media(max-width:1000px){#detail-content .pv3-ml .ml-hero{grid-template-columns:1fr}#detail-content .ml-diag{max-width:400px;margin-inline:auto}}
#detail-content .ml-kp{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important}
#detail-content .ml-kp b{white-space:nowrap;font-size:20px}
#detail-content .ml-nx b{white-space:normal;overflow:visible;text-overflow:clip}
#detail-content .ml-gauge{flex-wrap:wrap}
#detail-content .ml-f{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}

@media(max-width:860px){html body #detail-content .pv3-docs .pv3-del{font-size:0!important;width:40px!important;padding:0!important;justify-content:center}html body #detail-content .pv3-docs .pv3-del svg{width:19px;height:19px}#detail-content .pv3-docs .pv3-doc{grid-template-columns:52px minmax(0,1fr) auto!important}#detail-content .pv3-docs .pv3-dropcard{flex-wrap:wrap;text-align:center}}
/* boutons d'export PDF */
html body #detail-content .pe-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 20px;border-radius:12px!important;border:1.5px solid #e5213a!important;background:#fff!important;color:#e5213a!important;font:700 14px inherit;font-family:inherit;cursor:pointer;box-shadow:none!important;margin:0 0 14px 10px}
html body #detail-content .pe-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
html body #detail-content .pe-btn:hover{background:#e5213a!important;color:#fff!important}
html body #detail-content .pe-btn:disabled{opacity:.6;cursor:progress}
html body #detail-content .pb-actions .pe-btn{margin:0;flex:1 1 100%;order:-1}
@media(max-width:860px){html body #detail-content .pe-btn{margin:0 0 12px;width:100%}}
