.report-filters,.report-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0}.report-filters label{display:flex;align-items:center;gap:8px}.report-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:18px}.report-layout>*{min-width:0}.report-layout .editor-surface,.report-intro,.report-recipient-form{padding:20px;margin-bottom:18px}.report-layout h2{font-size:1.05rem;margin:0 0 12px}.report-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-full{grid-column:1/-1}.report-layout fieldset,.report-recipient-form fieldset{border:0;min-width:0;padding:0;margin:0}.report-layout legend{font-size:1rem;font-weight:600;margin:16px 0 10px}.report-layout .form-control{min-height:34px;font-size:14px;width:100%;max-width:100%;box-sizing:border-box}.report-layout label:not(.report-check){display:block;font-size:14px;margin:6px 0}.report-check{display:flex;align-items:flex-start;gap:8px;margin:12px 0;font-size:14px}.report-check input{flex-shrink:0}.report-contribution,.report-notifications article{border-bottom:var(--border-subtle);padding:12px 0;overflow-wrap:anywhere}.report-notifications article>span,.report-muted{display:block;margin:4px 0}.report-contribution p{white-space:pre-wrap}.report-layout p,.report-layout small,.report-intro p{overflow-wrap:anywhere}.report-line-form .report-fields{margin-top:12px}.report-photo{display:block;max-width:100%;max-height:240px;object-fit:contain}.report-evidence figure{margin:12px 0}.report-evidence figcaption{overflow-wrap:anywhere;margin:6px 0}.report-evidence input[type=file]{max-width:100%;margin:10px 0}.report-recipient-form{max-width:800px}.report-list td{white-space:normal;overflow-wrap:anywhere}.report-layout input[type=datetime-local]{max-width:260px}.report-header input[type=date]{max-width:180px}.report-layout .validation-message{font-size:13px;margin:5px 0}.report-notifications details{margin-top:8px}
@media(max-width:1050px){.report-layout{grid-template-columns:1fr}.report-layout aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.report-layout aside .editor-surface{margin:0}.report-notifications{grid-column:1/-1}}
@media(max-width:650px){.report-layout aside,.report-fields{grid-template-columns:1fr}.report-layout .editor-surface,.report-intro,.report-recipient-form{padding:14px}.report-fields .report-full{grid-column:auto}.report-filters{align-items:stretch}.report-layout .button{max-width:100%;white-space:normal}.report-layout input[type=datetime-local]{max-width:100%}}

.report-line-dialog{width:min(36rem,calc(100vw - 2rem));max-height:85dvh;overflow:auto}.report-line-dialog fieldset{border:0;padding:0;min-width:0}.report-line-dialog .form-control{width:100%;box-sizing:border-box}.report-line-dialog label{display:block;margin:12px 0 6px}.report-line-dialog .activity-dialog-actions{flex-wrap:wrap}
/* Jerarquía del reporte: asignación, datos generales y registros de trabajo. */
.report-label,.report-context dt { color:var(--color-text-muted); font-size:.8125rem; font-weight:600; }
.report-intro h2 { margin:6px 0 12px; font-size:1.2rem; overflow-wrap:anywhere; }
.report-context { display:grid; gap:14px; margin:16px 0 0; }
.report-context > div { min-width:0; }
.report-context dt { margin-bottom:4px; }
.report-context dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; }
.report-next-step { margin-top:18px; padding-top:16px; border-top:var(--border-subtle); }
.report-next-step h3 { font-size:1rem; margin:0 0 8px; }
.report-next-step p { margin:8px 0 0; font-size:.9375rem; line-height:1.5; }
.report-layout .report-field-group { border-top:var(--border-subtle); margin-top:18px; padding-top:6px; }
.report-layout .report-fields > legend { font-weight:700; padding-right:10px; }
.report-layout .report-fields > p { margin:0; }
.report-layout .report-contribution { border:var(--border-subtle); border-radius:var(--radius-control); padding:16px; margin:14px 0; background:var(--surface-glass-medium); }
.report-contribution h3 { font-size:1rem; margin:0; }
.report-contribution__author { border-top:var(--border-subtle); padding-top:12px; font-size:.875rem; }
.report-layout .report-line-form { border-top:var(--border-strong); padding-top:8px; margin-top:20px; }
.report-schedule-notice,.report-empty { padding:12px; border:var(--border-subtle); border-radius:var(--radius-control); font-size:.875rem; line-height:1.5; }
.report-layout .report-row-actions { margin-bottom:0; }
.report-contribution__heading { display:flex; align-items:flex-start; gap:8px; }
.report-contribution__heading h3 { flex:1; min-width:0; align-self:center; }
.report-contribution__heading > .report-contribution__action { flex:0 0 48px; width:48px; min-width:48px; min-height:48px; padding:8px; }
.report-contribution__remove { margin-left:auto; }
.report-intro,.report-layout article,.report-layout fieldset { scroll-margin-top:calc(var(--adaptive-heading-height, 5rem) + 1rem); }
.report-layout .report-fields input { scroll-margin-top:calc(var(--adaptive-heading-height, 5rem) + 3rem); }
@media(max-width:700px){
 .report-actions .form-action-bar__secondary > .button { flex:1 1 100%; justify-content:flex-start; text-align:left; min-height:44px; }
 .report-layout .report-contribution { padding:12px; }
 .report-layout .report-row-actions > .button { min-height:44px; }
 .report-layout .form-control { min-height:44px; font-size:16px; }
}

.report-photo-drafts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:14px;margin:14px 0}.report-evidence .report-photo-draft{border:var(--border-subtle);border-radius:var(--radius-control);padding:12px;margin:0;min-width:0}.report-photo-draft .report-photo{height:150px;width:100%;object-fit:contain}.report-photo-draft .button{margin-top:10px}
.report-evidence-gallery{container:report-evidence/inline-size;margin-block:16px}
.report-evidence-gallery__heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:.875rem;margin-bottom:12px}
.report-evidence-gallery__heading>span,.report-evidence-gallery__author{color:var(--color-text-muted)}
.report-evidence-gallery__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.report-evidence-gallery__grid>figure{min-width:0;margin:0;padding:8px;border:var(--border-subtle);border-radius:var(--radius-control);background:var(--surface-glass-medium)}
.report-photo-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:pointer;border-radius:var(--radius-control)}
.report-photo-open:focus-visible{outline:2px solid var(--color-focus-ring);outline-offset:3px}
.report-evidence-gallery .report-photo{width:100%;height:96px;object-fit:contain}
.report-evidence-gallery figcaption{font-size:.8125rem;line-height:1.35}
.report-evidence-gallery figcaption>span{display:block;margin-top:4px}
.report-evidence-gallery__caption,.report-evidence-gallery__author{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.report-evidence-gallery .button{min-height:44px;margin:0;padding-inline:10px;font-size:.8125rem}
.report-evidence-gallery__pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:.8125rem}
.report-evidence-gallery__pages>span{min-width:0;text-align:center}
.report-evidence-dialog{width:min(56rem,calc(100vw - 2rem));max-height:90dvh;overflow:auto}
.report-evidence-dialog>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.report-evidence-dialog h2{margin:0;font-size:1.1rem}
.report-evidence-dialog .report-photo{margin-inline:auto;max-height:58dvh;object-fit:contain}
.report-evidence-dialog__caption{white-space:pre-wrap;overflow-wrap:anywhere}
.report-evidence-dialog__actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
.report-photo-drafts{max-height:22rem;overflow:auto;scrollbar-gutter:stable;padding:2px}
.report-evidence .report-photo-draft{display:grid;grid-template-columns:4.5rem minmax(0,1fr);column-gap:10px;align-content:start}
.report-photo-draft .report-photo{grid-column:1;grid-row:1/span 5;height:72px;width:72px}
.report-photo-draft>figcaption,.report-photo-draft>label,.report-photo-draft>input,.report-photo-draft>.button{grid-column:2}
@container report-evidence (min-width:36rem){.report-evidence-gallery__grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.report-photo-frame > [hidden] { display: none !important; }
.report-photo-frame img:not([src]) { visibility: hidden; }

/* Secciones integradas y contraste del consumidor Reporte en consulta/captura. */
.report-standard{--report-section-padding:14px;min-width:0}
.report-standard.report-intro,.report-layout.report-standard .editor-surface,.report-standard.report-recipient-form{padding:var(--report-section-padding);border:var(--border-strong);background:var(--desktop-reading-surface,var(--surface-glass-high))}
.report-layout.report-standard .editor-surface{overflow:hidden}
.report-standard.report-intro>h2,.report-standard .editor-surface>h2{margin:calc(-1 * var(--report-section-padding)) calc(-1 * var(--report-section-padding)) 12px;padding:10px 14px;background:var(--desktop-header-surface,var(--surface-glass-high));border-bottom:var(--border-subtle);border-radius:0;font-size:1.0625rem;overflow-wrap:anywhere}
.report-standard.report-intro>.report-label{display:block;margin-block:8px}
.report-standard .report-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.report-standard .report-contribution{background:var(--surface-glass-medium);border:var(--border-strong)}
.report-standard .report-contribution:nth-of-type(even){background:var(--color-surface-subtle)}
.report-standard .report-check{min-height:48px;align-items:center;cursor:pointer}
.report-standard .report-check input[type="checkbox"]{width:18px;height:18px;min-width:18px;min-height:18px;flex:0 0 18px;margin:0}
.report-standard :is(.button,.form-control){max-width:100%;box-sizing:border-box}
.report-standard .button{white-space:normal;overflow-wrap:anywhere;gap:8px}
.report-operation-icon{width:24px;height:24px;flex:0 0 24px;object-fit:contain}
dialog.report-line-dialog.activity-dialog[open] .activity-dialog-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
dialog.report-line-dialog.activity-dialog[open] .activity-dialog-actions > .button { min-width:0; padding-inline:8px; white-space:normal; overflow-wrap:anywhere; }
@media(max-width:1050px){.report-layout.report-standard aside{grid-template-columns:minmax(0,1fr)}}
/* Los diálogos existentes mantienen verbos explícitos, su foco y su instancia. */
html[data-touch-capable="true"] :is(.report-line-dialog,.report-photo-draft-dialog,.operation-picker[aria-labelledby="report-activity-picker-title"]) :is(button,input:not([type="checkbox"]),textarea,select){min-height:48px;min-width:48px}
@media(max-width:64rem){
 .report-standard{--report-section-padding:12px}
 .report-standard.report-intro,.report-layout.report-standard .editor-surface,.report-standard.report-recipient-form{background:var(--color-surface-raised);border:1px solid var(--color-content-border)}
 .report-standard.report-intro>h2,.report-standard .editor-surface>h2{background:var(--surface-glass-high);border-bottom:1px solid var(--color-content-border)}
 .report-standard .report-contribution{border-color:var(--color-content-border)}
 .report-standard .report-context{font-size:.875rem}
 .report-standard .form-control{font-size:1rem;min-height:48px}
 :is(.report-line-dialog,.report-photo-draft-dialog,.operation-picker[aria-labelledby="report-activity-picker-title"]) :is(button,input:not([type="checkbox"]),textarea,select){min-height:48px;min-width:48px}
}
