/* Avaliação por foto - HF Pacientes */
.hf-photo-open{white-space:nowrap}
.hf-photo-dialog-open,.hf-photo-camera-open{overflow:hidden}
.hf-photo-dialog{position:fixed;inset:0;z-index:99990;background:rgba(0,0,0,.62);display:grid;place-items:center;padding:18px;color:var(--text,#17191d)}
.hf-photo-dialog[hidden],.hf-photo-camera-modal[hidden]{display:none!important}
.hf-photo-dialog-panel{width:min(680px,100%);max-height:calc(100dvh - 36px);overflow:auto;background:var(--card,#fff);color:inherit;border:1px solid var(--border,#d9dce1);border-radius:22px;padding:20px;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.hf-photo-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.hf-photo-dialog-head h2{margin:0;font-size:1.25rem}.hf-photo-dialog-head p{margin:4px 0 0;opacity:.7}.hf-photo-dialog-close{flex:0 0 auto;width:40px;height:40px;border:1px solid var(--border,#d9dce1);border-radius:50%;background:transparent;color:inherit;font-size:27px;line-height:1}
.hf-photo-captures{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hf-photo-capture{min-height:330px;border:1px dashed currentColor;border-radius:18px;background:transparent;color:inherit;overflow:hidden;padding:0;position:relative;opacity:.78}.hf-photo-capture:hover{opacity:1}.hf-photo-capture img{width:100%;height:330px;object-fit:contain;background:color-mix(in srgb,currentColor 5%,transparent)}.hf-photo-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:330px;gap:7px;padding:14px}.hf-photo-placeholder svg{width:112px;height:225px;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linejoin:round}.hf-photo-placeholder svg .body{fill:color-mix(in srgb,currentColor 8%,transparent)}.hf-photo-placeholder .axis{stroke-width:1.2;stroke-dasharray:7 10;opacity:.3}.hf-photo-placeholder b{font-size:1rem}.hf-photo-placeholder small{font-size:.78rem;opacity:.62}.hf-photo-dialog-help{font-size:.82rem;opacity:.68;margin:12px 0}.hf-photo-save{width:100%;min-height:46px}.hf-photo-notice{margin:10px 0 0;font-size:.88rem}.hf-photo-notice.success{color:#16803b}.hf-photo-notice.error{color:#b42318}
.hf-photo-camera-modal{position:fixed;inset:0;z-index:99999;background:#000}.hf-photo-camera-shell{position:absolute;inset:0;overflow:hidden}.hf-photo-camera-shell video{width:100%;height:100%;object-fit:cover}.hf-photo-guide{position:absolute;inset:5% 12% 13%;display:grid;place-items:center;color:rgba(255,255,255,.78);pointer-events:none}.hf-photo-guide svg{height:100%;max-width:100%;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linejoin:round;filter:drop-shadow(0 1px 3px #000)}.hf-photo-guide svg .body{fill:rgba(255,255,255,.05)}.hf-photo-guide .axis{stroke-width:1.2;stroke-dasharray:7 10;opacity:.6}.hf-photo-camera-top{position:absolute;top:max(16px,env(safe-area-inset-top));left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;color:#fff;text-shadow:0 1px 3px #000}.hf-photo-close{width:44px;height:44px;border-radius:50%;border:0;background:rgba(0,0,0,.48);color:#fff;font-size:30px}.hf-photo-camera-tip{position:absolute;left:18px;right:18px;bottom:112px;text-align:center;color:#fff;font-size:13px;text-shadow:0 1px 3px #000}.hf-photo-shutter{position:absolute;z-index:5;bottom:max(28px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:76px;height:76px;border-radius:50%;border:4px solid #fff;background:rgba(0,0,0,.15);padding:6px;touch-action:manipulation}.hf-photo-shutter span{display:block;width:100%;height:100%;border-radius:50%;background:#fff}
.hf-photo-results{margin-top:16px}.hf-photo-results-title{width:100%}.hf-photo-results-icon{display:grid;place-items:center}.hf-photo-date-selector{padding:0 18px 14px}.hf-photo-date-selector>strong{display:block;margin-bottom:8px;font-size:.88rem}.hf-photo-date-selector>div{display:flex;flex-wrap:wrap;gap:8px}.hf-photo-date-selector label{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border,#d9dce1);border-radius:999px;padding:7px 11px;cursor:pointer}.hf-photo-date-selector label.is-selected{font-weight:700}.hf-photo-date-selector input{margin:0}.hf-photo-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 18px 18px}.hf-photo-results figure{margin:0}.hf-photo-results figure img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:14px;background:color-mix(in srgb,currentColor 5%,transparent)}.hf-photo-results figcaption{display:flex;justify-content:space-between;gap:8px;margin-top:7px;font-size:.82rem}.hf-photo-patient-note{padding:0 18px 16px;opacity:.65}
@media(min-width:641px){#hf-anthropometry-card .anthro-head-actions .anthro-protocol-picker{order:1}#hf-anthropometry-card .anthro-head-actions .hf-photo-open{order:2}#hf-anthropometry-card .anthro-head-actions .anthro-section-toggle:not(.hf-photo-open){order:3}}
@media(max-width:640px){#hf-anthropometry-card .anthro-head-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;width:100%}#hf-anthropometry-card .anthro-head-actions .hf-photo-open{grid-column:1;grid-row:1;width:100%}#hf-anthropometry-card .anthro-head-actions .anthro-section-toggle:not(.hf-photo-open){grid-column:2;grid-row:1;width:100%}#hf-anthropometry-card .anthro-head-actions .anthro-protocol-picker{grid-column:1 / -1;grid-row:2;width:100%;margin:0!important}#hf-anthropometry-card .anthro-head-actions .anthro-protocol-picker select{width:100%}.hf-photo-dialog{padding:10px}.hf-photo-dialog-panel{padding:16px;border-radius:18px;max-height:calc(100dvh - 20px)}.hf-photo-captures{gap:8px}.hf-photo-capture,.hf-photo-placeholder{min-height:250px}.hf-photo-capture img{height:250px}.hf-photo-placeholder svg{height:165px;width:82px}.hf-photo-placeholder small{display:none}.hf-photo-results-grid{gap:8px;padding-left:12px;padding-right:12px}.hf-photo-results figcaption{display:block}.hf-photo-results figcaption span{display:block;opacity:.65;margin-top:2px}}
