/* Reembolsos: escala de espacios 8 / 12 / 16 / 24 / 32; estilos limitados al módulo. */
#v-reembolsos{max-width:1440px;margin-inline:auto}
#v-reembolsos>.fila:first-child{gap:24px;align-items:flex-start;margin-bottom:16px}
#v-reembolsos>.fila:first-child h1{margin:0}
#v-reembolsos>.fila:first-child>.fila{gap:8px;justify-content:flex-end}
#v-reembolsos button,#reem-detalle button{min-height:44px}
#v-reembolsos .reem-intro{max-width:72ch;margin:0 0 24px;font-size:16px}
.reem-flujo{list-style:none;margin:0 0 16px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-block:1px solid var(--filete);padding-block:20px}
.reem-flujo li{display:grid;gap:8px;align-content:start;min-width:0}.reem-flujo span{color:var(--suave);font-size:14px;line-height:1.5}
#v-reembolsos #reem-aviso{margin:16px 0;overflow-wrap:anywhere}
#v-reembolsos #reem-tarjetas{margin-block:24px}
#v-reembolsos>.fila:not(:first-child){align-items:end;gap:16px;margin-block:24px}
#v-reembolsos>.fila>label{display:grid;gap:8px;min-width:0}
#v-reembolsos #reem-buscar{min-width:min(360px,100%)}
#v-reembolsos .tabla{margin-block:16px 24px}
#v-reembolsos table{width:100%;table-layout:fixed;min-width:900px}
#v-reembolsos th,#v-reembolsos td{padding:16px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
#v-reembolsos th:first-child{width:30%}#v-reembolsos th:nth-child(2){width:16%}#v-reembolsos th:nth-child(3){width:20%}#v-reembolsos th:nth-child(4){width:22%}#v-reembolsos th:last-child{width:12%}
#v-reembolsos td p{margin:8px 0;line-height:1.5}#v-reembolsos td small{display:inline-block;color:var(--suave);line-height:1.5}
#v-reembolsos .reem-asunto{text-align:left;font-weight:600;padding:0;white-space:normal;line-height:1.45;border-radius:var(--r-sm)}
.reem-extracto{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--suave);font-size:14px}
#reem-detalle{width:min(1320px,calc(100% - 48px));max-width:none;border-radius:var(--r-lg)}
#reem-detalle form{padding:24px;max-height:90dvh;overflow:auto;scroll-padding:24px}
#reem-detalle h2{font-size:23px;line-height:1.3;margin:0;overflow-wrap:anywhere}
#reem-detalle h3{font-size:17px;margin:0 0 12px;line-height:1.4}
#reem-detalle p{line-height:1.55;overflow-wrap:anywhere}
.reem-det-cabecera{gap:24px;align-items:flex-start;margin-bottom:24px}
.reem-det-cabecera #reem-cerrar{flex:none}
.reem-resumen{display:grid;grid-template-columns:1fr 1fr;gap:32px;border-block:1px solid var(--filete);padding-block:24px;margin-bottom:24px}
.reem-resumen p{margin:8px 0 0}.reem-resumen>section{min-width:0}
.reem-revision{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.6fr);gap:32px;align-items:start;margin-block:24px 32px}
.reem-origen{min-width:0}.reem-origen>label{display:grid;gap:8px;font-weight:600;margin-bottom:16px}
#reem-correo-seleccionado{width:100%;min-width:0;max-width:100%;text-overflow:ellipsis}
#reem-fuente>p:first-child{font-size:14px;margin:0 0 16px}
#reem-fuente>details{margin-block:16px 24px}
#reem-fuente>h3{margin-top:24px}
.reem-archivos{padding:0;margin:0 0 16px;list-style:none;display:grid;gap:12px}
.reem-archivos li{display:grid;gap:8px;border-bottom:1px solid var(--filete);padding-bottom:12px}
.reem-archivos li>button:last-child{justify-self:start;padding-inline:12px;font-size:13px}
.reem-archivo{text-align:left;border-radius:var(--r-md);padding:12px;min-width:0;width:100%;color:var(--tinta);white-space:normal;overflow-wrap:anywhere}
.reem-archivo b{display:block;font-size:14px}.reem-archivo small{display:block;color:var(--suave);margin-top:8px;font-size:12px}
.reem-archivo[aria-pressed=true]{border-color:var(--primario);background:var(--pend-bg)}
.reem-preview{position:sticky;top:0;min-width:0;background:var(--canvas)}
.reem-vista-nombre{font-weight:600;margin:0 0 8px;font-size:14px}
#reem-vista-nota{font-size:13px;margin:0 0 16px}
.reem-vista{min-height:320px;max-height:62vh;overflow:auto;border:1px solid var(--filete);border-radius:var(--r-md);background:var(--pergamino);padding:16px;overscroll-behavior:contain}
.reem-vista>p{margin:8px}.reem-vista>img{display:block;max-width:100%;height:auto;margin-inline:auto;object-fit:contain;background:var(--canvas)}
.reem-vista canvas{display:block;max-width:100%;background:var(--canvas)}
.reem-vista pre,#reem-fuente pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font:14px/1.65 var(--texto);max-height:360px;overflow:auto;margin:0}
.reem-pdf-barra{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;position:sticky;top:-16px;background:var(--pergamino);padding-block:8px}
.reem-pdf-barra button{padding-inline:12px}.reem-pdf-barra span{font-size:13px;text-align:center}
.reem-contabilidad{padding-top:24px;border-top:1px solid var(--filete)}
.reem-campos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;border:0;padding:0;margin:24px 0}
.reem-campos>label,#reem-fuente [data-identificar]>label{display:grid;gap:8px;min-width:0}
.reem-campos input,.reem-campos select,.reem-campos textarea,#reem-fuente [data-identificar] input,#reem-fuente [data-identificar] select,#reem-fuente [data-identificar] textarea{width:100%;min-width:0;max-width:100%;min-height:44px}
.reem-campos>label:has(textarea){grid-column:1/-1}.reem-campos>button{justify-self:start}
#reem-fuente [data-identificar]>label{margin-block:12px}#reem-fuente [data-identificar]>p{font-size:14px}
#reem-historial{padding-left:20px}#reem-historial li{margin-block:12px;font-size:14px}
.reem-campos textarea{resize:vertical}
@media(max-width:1000px){.reem-revision{grid-template-columns:minmax(240px,1fr) minmax(0,1.25fr);gap:24px}#reem-detalle{width:calc(100% - 32px)}}
@media(max-width:760px){
 #v-reembolsos>.fila:first-child{display:grid;gap:16px}#v-reembolsos>.fila:first-child>.fila{justify-content:flex-start}
 .reem-flujo{grid-template-columns:1fr;gap:20px;padding-block:20px}
 #v-reembolsos table{min-width:0;table-layout:auto}#v-reembolsos thead{display:none}#v-reembolsos tbody{display:grid;gap:16px}
 #v-reembolsos tr{display:grid;grid-template-columns:1fr;min-width:0;padding:16px;border:1px solid var(--filete);border-radius:var(--r-md);background:var(--canvas)}
 #v-reembolsos td{padding:8px 0;border:0;min-width:0}#v-reembolsos td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--suave);margin-bottom:8px;font-weight:600}
 #v-reembolsos .tabla{overflow:visible}#v-reembolsos #reem-buscar{min-width:0;width:100%}#v-reembolsos>.fila>label{width:100%}
 #reem-detalle{width:calc(100% - 24px);max-height:calc(100dvh - 24px);margin:12px;border-radius:var(--r-md)}
 #reem-detalle form{padding:16px;max-height:calc(100dvh - 24px);scroll-padding:16px}
 .reem-det-cabecera{gap:16px;margin-bottom:20px}#reem-detalle h2{font-size:20px}
 .reem-resumen,.reem-revision,.reem-campos{grid-template-columns:1fr;gap:24px}
 .reem-resumen{padding-block:20px}.reem-preview{position:static}.reem-vista{max-height:56vh;min-height:240px}
 .reem-campos>label:has(textarea){grid-column:auto}.reem-pdf-barra{gap:8px}.reem-pdf-barra button{font-size:13px;padding-inline:10px}
}
.reem-coincidencias{padding:12px 16px;background:var(--obs-bg);border:1px solid var(--filete);border-radius:var(--r-md);margin-block:16px}
.reem-coincidencias summary{font-weight:600;min-height:44px;align-content:center;cursor:pointer}.reem-coincidencias p{margin:8px 0}.reem-coincidencias ul{padding-left:20px;margin:12px 0 0}

body:has(#reem-detalle[open]){overflow:hidden}
#reem-detalle form{overscroll-behavior:contain}
#v-reembolsos input::placeholder,#reem-detalle input::placeholder,#reem-detalle textarea::placeholder{color:var(--suave);opacity:1}

.reem-vista>details{margin-top:16px}.reem-vista>details>summary{min-height:44px;align-content:center;cursor:pointer}.reem-vista>details>pre{margin-top:12px}

.reem-pasos,.reem-atajos{display:flex;flex-wrap:wrap;gap:12px;margin-block:16px 24px}
.reem-pasos button{flex:1 1 180px;text-align:left;white-space:normal}
.reem-atajos button[aria-pressed=true]{background:var(--pend-bg);border-color:var(--primario)}
.reem-campos h4,.reem-comprobacion{grid-column:1/-1;margin:0}
.reem-campos h4{font-size:16px;margin-top:8px}
.reem-comprobacion{border-top:1px solid var(--filete);padding-top:20px}
#reem-requisitos{padding-left:20px;margin:12px 0}#reem-requisitos li{margin-block:8px;line-height:1.5}
#tex-control{margin-block:16px 24px}#tex-control summary{min-height:44px;align-content:center;cursor:pointer}#tex-captura p{margin-block:12px;max-width:75ch;overflow-wrap:anywhere}

#reem-detalle textarea{font:inherit;line-height:1.5;color:var(--tinta);background:var(--canvas);border:1px solid var(--filete);border-radius:var(--r-md);padding:12px;min-height:96px}
.reem-barra-detalle{position:sticky;top:0;z-index:4;background:var(--canvas);padding-block:8px;border-bottom:1px solid var(--filete);margin-bottom:24px}
.reem-barra-detalle .reem-det-cabecera{margin-bottom:12px}.reem-barra-detalle .reem-pasos{margin:0 0 8px;gap:8px}
.reem-barra-detalle .reem-pasos button{flex:1 1 0;min-width:0;text-align:center;padding-inline:8px;font-size:13px}
#reem-detalle h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#reem-detalle form{scroll-padding-top:160px}.reem-preview{top:160px}
.reem-barra-detalle{top:-24px;padding-block:16px}.reem-det-cabecera{flex-wrap:nowrap}.reem-det-cabecera h2{flex:1;min-width:0}
@media(max-width:760px){.reem-barra-detalle{top:-16px;padding-block:12px}}

#tex-detalle,#exp-detalle{width:min(1200px,calc(100% - 48px));max-width:none}#tex-detalle form,#exp-detalle form{padding:24px;max-height:90dvh;overflow:auto}#tex-detalle button,#exp-detalle button{min-height:44px}
.tex-documentos{margin-block:24px;padding-block:24px;border-block:1px solid var(--filete)}.tex-documentos h4{font-size:17px;margin:0 0 16px}.tex-documentos p{overflow-wrap:anywhere;line-height:1.5}
.tex-lista-documentos{display:flex;flex-wrap:wrap;gap:12px;margin-block:16px}.tex-lista-documentos button{text-align:left;white-space:normal;overflow-wrap:anywhere;max-width:100%}.tex-lista-documentos button[aria-pressed=true]{background:var(--pend-bg);border-color:var(--primario)}
.tex-documentos>.reem-vista{margin-top:16px;max-height:65vh}.tex-documentos canvas{max-width:100%}
@media(max-width:760px){#tex-detalle,#exp-detalle{width:calc(100% - 24px);margin:12px}#tex-detalle form,#exp-detalle form{padding:16px;max-height:calc(100dvh - 24px)}.tex-lista-documentos{display:grid}}

#v-tex .tex-leer{min-height:44px;display:inline-flex;align-items:center;font-size:13px}

.tex-cabecera{position:sticky;top:-24px;z-index:3;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;background:var(--canvas);padding-block:16px;border-bottom:1px solid var(--filete)}.tex-cabecera h3{font-size:20px;line-height:1.35;margin:0;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tex-cabecera button{flex:none}
@media(max-width:760px){.tex-cabecera{top:-16px;padding-block:12px}}

#exp-filas button{min-height:44px}
