.print-options{width:min(560px,92vw);border:1px solid #ccd5e3;border-radius:16px;padding:24px;color:#10265a;max-height:90vh;overflow:auto}
.print-options::backdrop{background:#0d172a88}.print-options h2{margin-top:0}.print-options label{display:flex;align-items:center;gap:10px;padding:10px 0}.print-options input{width:20px;height:20px}.print-options p{line-height:1.5}.print-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.print-error{color:#a12c38}#sensory-print{display:none}
@media print{
 @page{size:A4 portrait;margin:12mm 12mm 18mm}
 body{padding:0!important;margin:0!important;background:white!important}
 body > :not(#sensory-print){display:none!important}
 #sensory-print{display:block!important;font:10pt/1.4 Arial,sans-serif;color:#15213b}
 #sensory-print *{box-sizing:border-box;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #sensory-print header{border-bottom:1px solid #10265a;padding-bottom:4mm;margin-bottom:6mm;overflow-wrap:anywhere}
 #sensory-print h1{font-size:16pt;margin:0 0 3mm}#sensory-print h2,.sp-wheel-title{font-size:15pt;margin:0 0 5mm;color:#10265a;break-after:avoid}
 #sensory-print .sp-section{break-before:page;margin:0;padding:0;border:0;box-shadow:none;overflow:visible}
 #sensory-print header + .sp-section{break-before:auto}
 #sensory-print footer{position:fixed;bottom:-12mm;left:0;right:0;border-top:1px solid #ccd5e3;padding-top:2mm;font-size:8pt;background:white}
 #sensory-print .sp-wheel-panel{break-inside:avoid}
 .sp-wheel{position:relative;width:180mm;height:180mm;margin:8mm auto 0;border-radius:50%;background:conic-gradient(#e11d48 0 10%,#f97316 10% 20%,#f59e0b 20% 30%,#eab308 30% 40%,#65a30d 40% 50%,#0d9488 50% 60%,#0284c7 60% 70%,#2563eb 70% 80%,#6d28d9 80% 90%,#db2777 90%)}
 .sp-wheel::before{content:"";position:absolute;inset:19%;background:white;border-radius:50%}
 .sp-sense-card{position:absolute;transform:translate(-50%,-50%);width:30mm;min-height:28mm;border:1mm solid var(--c);border-radius:3mm;padding:1.5mm;background:white;text-align:center;font:8pt/1.2 Arial;color:#15213b;overflow-wrap:anywhere}
 .sp-sense-num{display:inline-block;border-radius:50%;background:var(--c);color:white;padding:1mm;font-weight:bold}.sp-sense-icon{display:inline-block;margin-left:1mm;font-size:12pt}.sp-sense-name{display:block;font-weight:bold;color:var(--c);margin-top:1mm}.sp-sense-sub{display:block;font-size:6.5pt}.sp-sense-mode{display:block;margin-top:1mm}
 .sp-sense-card::after{display:block;margin-top:1mm;font-size:7pt}.sp-completed::after{content:"Validé";color:#198038}.sp-not-completed::after{content:"En cours";color:#a12c38}
 .sp-center-profile{position:absolute;inset:32%;display:grid;place-items:center}.sp-center-photo{width:45mm;height:45mm;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#eef2f7}.sp-center-photo img{width:100%;height:100%;object-fit:cover}
 .sp-center-id,.sp-completion,.sp-validation-legend,.sp-sense-done{display:none!important}
 .sp-action-list{display:block}.sp-action-row{display:block;border:1px solid var(--c);padding:3mm;margin-bottom:3mm;break-inside:auto;overflow-wrap:anywhere}.sp-action-num{color:var(--c);font-weight:bold;margin-right:2mm}.sp-action-name{font-weight:bold;color:var(--c)}.sp-action-text{display:block;white-space:pre-wrap;margin-top:2mm;line-height:1.5;overflow-wrap:anywhere}
 #sensory-print table{width:100%!important;table-layout:fixed;font-size:9pt!important;border-collapse:collapse!important}#sensory-print th,#sensory-print td{padding:2mm!important;overflow-wrap:anywhere}#sensory-print th:nth-child(1){width:8%}#sensory-print th:nth-child(2){width:18%}#sensory-print th:nth-child(3){width:20%}#sensory-print thead{display:table-header-group}#sensory-print tr{break-inside:avoid;page-break-inside:avoid}#sensory-print td{white-space:normal!important;line-height:1.5!important;height:auto!important;max-height:none!important;overflow:visible!important;word-break:normal!important}#sensory-print td:last-child{white-space:pre-wrap!important}
 .sp-crisis-heading p{margin:0 0 4mm}.sp-crisis-icon,.sp-crisis-number{display:none}.sp-crisis-grid{display:block}.sp-crisis-field{margin:0 0 6mm}.sp-crisis-field-title{font-weight:bold;break-after:avoid}.sp-print-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:2mm;border:1px solid #ccd5e3;padding:3mm;min-height:15mm}
}
/* Le centre reste dans le disque blanc, même avec une longue liste de troubles. */
@media screen{
 .wheel .center-profile{inset:28%!important;display:block!important;min-width:0!important;min-height:0!important;z-index:4!important;overflow:hidden!important}
 .wheel .center-profile > div{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;height:100%!important;min-height:0!important;transform:none!important}
 .wheel .center-photo{flex:0 0 auto!important;width:clamp(38px,10vw,80px)!important;height:clamp(38px,10vw,80px)!important;max-height:32%!important;aspect-ratio:1;border-width:3px!important;margin:0 auto 4px!important}
 .wheel .center-id{flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;max-height:100%!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-wrap:anywhere!important;white-space:normal!important;font-size:clamp(10px,1.6vw,12px)!important;line-height:1.35!important;padding:5px 7px!important;margin:0!important;background:white!important}
 .wheel .center-id div{margin:3px 0!important}.wheel .center-id:focus-visible{outline:2px solid #6541bd;outline-offset:-2px}
}
@media print{
 #sensory-print .sp-center-profile{inset:30%;display:flex;align-items:center;justify-content:center;text-align:center}
 #sensory-print .sp-center-profile > div{width:100%}
 #sensory-print .sp-center-photo{width:24mm;height:24mm;margin:0 auto 3mm}
 #sensory-print .sp-center-id{display:block!important;width:100%;min-width:0;border:1px solid #8fa9d8;border-radius:3mm;padding:2mm;background:white;font-size:8pt;line-height:1.4;overflow-wrap:anywhere}
 #sensory-print .sp-center-id div{margin:1mm 0}
}
/* Les textes libres, y compris sans espaces, restent dans leur propre case. */
.action-list,.action-list .action-row{min-width:0!important;max-width:100%!important}
.action-list .action-row{grid-template-columns:32px minmax(0,95px) minmax(0,1fr)!important;align-items:start!important;height:auto!important}
.action-list .action-row > *{min-width:0!important;max-width:100%!important}
.action-list .action-text{white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.4!important;height:auto!important;max-height:none!important}
.action-list .action-name{overflow-wrap:anywhere!important}
@media screen and (max-width:480px){
 .action-list .action-row{grid-template-columns:32px minmax(0,1fr)!important}
 .action-list .action-text{grid-column:1 / -1!important}
}
@media print{
 #sensory-print .sp-action-row,#sensory-print .sp-action-text{min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow-wrap:anywhere!important;white-space:pre-wrap!important}
}
/* Ordre de lecture commun sur ordinateur, tablette et téléphone. */
@media screen{
 .content .dashboard{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:16px!important}
 .content .dashboard > .wheel-panel{order:1!important;align-self:center!important;width:100%!important;max-width:760px!important;min-width:0!important}
 .content .dashboard > .rightcol{order:2!important;display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;min-width:0!important;gap:16px!important}
 .content .dashboard > .rightcol > .actions-panel{order:1!important;width:100%!important;min-width:0!important}
 .content .dashboard > .rightcol > .recap-panel{order:2!important;width:100%!important;min-width:0!important}
 .content .dashboard > .crisis-panel{order:3!important;width:100%!important;min-width:0!important}
}
