#hd-guide-quick-actions .modal-dialog{max-width:620px}#hd-guide-quick-actions [hidden]{display:none!important}#hd-guide-quick-actions .form-label{font-size:14px;font-weight:600}#hd-guide-quick-actions .modal-body{max-height:70vh;overflow-y:auto}.hd-guide-weekdays{display:flex;flex-wrap:wrap;gap:10px}
#hd-calendar-page[data-is-admin="0"] .hd-calendar-sidebar,#hd-calendar-page[data-is-admin="0"] .hd-pending-panel,#hd-calendar-page[data-is-admin="0"] .hd-urgent-pending{display:none!important}
#hd-calendar-page[data-is-admin="0"] .hd-calendar-layout{grid-template-columns:minmax(0,1fr)}
#hd-calendar-page[data-is-admin="0"] .hd-stat-pending{opacity:.65}

#hd-calendar-page[data-is-admin="0"] .hd-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#hd-calendar-page[data-is-admin="0"] #hd-filter-sector{display:none}
@media(max-width:700px){#hd-calendar-page[data-is-admin="0"] .hd-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.hd-guide-detail { position:relative; }
.hd-guide-sticky-actions { position:fixed; z-index:1105; bottom:12px; left:50%; transform:translateX(-50%); display:flex; width:min(480px,calc(100vw - 38px)); padding:9px 12px; gap:10px; justify-content:space-between; border:1px solid #e1e8f3; border-radius:10px; box-shadow:0 9px 28px #193b6a36; background:#fff; }
.hd-guide-sticky-actions .btn { flex:1; justify-content:center; }
.hd-guide-detail .hd-guide-cancel-panel { background:#fff; padding:15px; border:1px solid #dde5ef; border-radius:10px; margin-top:15px; }
.hd-guide-wizard-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:12px; margin-bottom:15px; border-bottom:1px solid #e5eaf3; }
.hd-guide-wizard-step[hidden], .hd-guide-cancel-panel[hidden], .hd-guide-wizard [hidden], dialog.hd-guide-wizard:not([open]) { display:none!important; }
.hd-guide-signature { position:relative; border:1px solid #dae2ed; background:#fff; border-radius:6px; overflow:hidden; height:220px; }
.hd-guide-signature canvas { width:100%;height:100%;touch-action:none;display:block;cursor:crosshair; }
.hd-guide-signature [data-guide-clear] { position:absolute;right:4px;top:4px;z-index:1; }
@media(max-width:620px){.hd-guide-sticky-actions{bottom:8px;padding:7px;gap:6px}.hd-guide-signature{height:195px}.hd-guide-sticky-actions .btn{font-size:13px;padding:10px 7px}}

dialog.hd-guide-wizard { position:fixed; inset:0; width:100vw; max-width:none; height:100vh; height:100dvh; max-height:none; margin:0; padding:0; border:0; border-radius:0; overflow-y:auto; overscroll-behavior:contain; background:#f5f7fb; color:#334861; z-index:20000; }
dialog.hd-guide-wizard::backdrop { background:rgba(20,30,48,.72); }
.hd-guide-wizard-layout { display:flex; flex-direction:column; box-sizing:border-box; min-height:100%; width:min(740px,100%); margin:0 auto; padding:20px 24px max(18px,env(safe-area-inset-bottom)); }
dialog.hd-guide-wizard .hd-guide-wizard-head { position:sticky; top:0; z-index:4; background:#f5f7fb; padding:10px 0 16px; margin-bottom:16px; }
dialog.hd-guide-wizard .hd-guide-wizard-form { display:flex; flex:1; flex-direction:column; min-width:0; }
dialog.hd-guide-wizard .hd-guide-wizard-step:not([hidden]) { display:flex; flex:1; flex-direction:column; min-width:0; }
dialog.hd-guide-wizard .hd-guide-wizard-actions { display:flex; justify-content:flex-end; position:sticky; bottom:0; z-index:3; margin-top:auto; padding:16px 0 max(12px,env(safe-area-inset-bottom)); background:#f5f7fb; }
dialog.hd-guide-wizard .hd-guide-wizard-actions .btn { min-height:42px; }
dialog.hd-guide-wizard .hd-guide-signature { height:clamp(220px,38dvh,360px); }
@media(max-width:620px) { .hd-guide-wizard-layout { padding:10px 15px max(12px,env(safe-area-inset-bottom)); } dialog.hd-guide-wizard .hd-guide-signature { height:clamp(200px,40dvh,310px); } dialog.hd-guide-wizard .hd-guide-wizard-actions { gap:8px; } dialog.hd-guide-wizard .hd-guide-wizard-actions .btn { flex:1; font-size:13px; } }

/* Une annulation appartenant au guide reste modifiable directement en tête de fiche. */
.hd-guide-cancellation-actions {position:relative; bottom:auto; left:auto; transform:none; width:100%; margin:0 0 14px; box-shadow:none; z-index:1;}
@media(max-width:620px){.hd-guide-cancellation-actions{bottom:auto; flex-wrap:wrap;}}
