#ped-att .card{margin-bottom:16px;min-width:0}
.ped-att-controls,.ped-att-counts,.ped-att-watch{display:flex;gap:.85rem;flex-wrap:wrap;align-items:end;margin:.7rem 0}
.ped-att-controls label,.ped-att-watch label{display:grid;gap:.35rem;font-weight:700}
#ped-att select,#ped-att input{font:inherit;min-height:40px;max-width:100%;padding:.4rem;border:1px solid #b7a6c3;border-radius:.45rem;background:white;color:#2e2436}
#ped-att input[type=number]{max-width:7rem}
#ped-att summary{cursor:pointer;padding:.6rem 0;font-weight:700}
.ped-att-watch>div{flex:1;min-width:13rem}
.ped-att-watch ul{max-height:13rem;overflow:auto}
.ped-att-scroll{overflow:auto;max-height:62vh;border:1px solid #d2c5db;border-radius:10px;margin:.8rem 0;isolation:isolate}
#ped-att table{border-spacing:0;width:max-content;min-width:100%;color:#292431}
#ped-att td,#ped-att th{padding:.46rem;border-bottom:1px solid #e6dfea;white-space:nowrap;text-align:center}
#ped-att th[scope=row],#ped-att th:nth-child(2){text-align:left}
#ped-att thead th{position:sticky;top:0;background:#e9dff2;z-index:2}
#ped-att .ped-att-matrix tr>:first-child{position:sticky;left:0;min-width:3.2rem;width:3.2rem;max-width:3.2rem}
#ped-att .ped-att-matrix tr>:nth-child(2){position:sticky;left:3.2rem;width:clamp(9rem,24vw,18rem);max-width:clamp(9rem,24vw,18rem);white-space:normal;overflow-wrap:anywhere;text-align:left}
#ped-att .ped-att-matrix tbody tr>:nth-child(-n+2){background:#faf7fc;z-index:1}
#ped-att .ped-att-matrix thead tr>:nth-child(-n+2){z-index:3}
.ped-att-mark{display:inline-block;text-align:center;width:1.6rem;height:1.6rem;line-height:1.6rem;border-radius:.3rem;font-weight:800;color:#242027}
.ped-att-P{background:#d7f5df}.ped-att-F{background:#ffd9dd}.ped-att-J{background:#ebddfa}.ped-att-R{background:#ffe7c6}
.ped-att-title{display:flex;gap:.8rem;align-items:center}.ped-att-title img{width:3rem;height:3rem;border-radius:.5rem}
.ped-att-title h3,.ped-att-title p{margin:.15rem 0}
.ped-att-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.6rem}
.ped-att-meta dt{font-weight:700}.ped-att-meta dd{margin:0;overflow-wrap:anywhere}
.ped-att-alert{background:#fff0ca;padding:.5rem;border-left:3px solid #9a5b0c}
.ped-att-actions{flex-wrap:wrap}
@media(max-width:600px){.ped-att-controls label{flex:1 0 45%}#ped-att .ped-att-matrix tr>:nth-child(2){width:9rem;max-width:9rem}}

#ped-att .ped-att-matrix th,#ped-att .ped-att-matrix td{box-sizing:border-box}
#ped-att :focus-visible{outline:3px solid #725394;outline-offset:2px}

/* R2 panel táctil: el reporte conserva el diseño anterior. */
#ped-att table.ped-att-touch{width:100%;table-layout:fixed}
#ped-att .ped-att-touch thead th{white-space:normal;text-align:center;line-height:1.2}
#ped-att .ped-att-touch thead th:first-child{text-align:left;width:30%}
#ped-att .ped-att-touch tbody th{white-space:normal;overflow-wrap:anywhere}
#ped-att .ped-att-touch td{padding:.3rem .2rem}
#ped-att .ped-att-touch-option{min-width:44px;min-height:44px;display:inline-grid;place-items:center;position:relative;cursor:pointer;touch-action:manipulation;border-radius:8px}
#ped-att .ped-att-touch-option:hover{background:#f6edf8}
#ped-att .ped-att-touch-option input{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;cursor:pointer}
#ped-att .ped-att-dot{width:24px;height:24px;border-radius:50%;border:2px solid var(--ped-dot-color);display:grid;place-items:center}
#ped-att input:checked+.ped-att-dot{border-width:4px;background:white}
#ped-att input:checked+.ped-att-dot::after{content:'';display:block;background:var(--ped-dot-color);width:10px;height:10px;border-radius:100%}
#ped-att input:focus-visible+.ped-att-dot{outline:3px solid #242027;outline-offset:3px}
.ped-att-touch-P{--ped-dot-color:#317553}.ped-att-touch-F{--ped-dot-color:#a9304b}.ped-att-touch-J{--ped-dot-color:#76529a}.ped-att-touch-R{--ped-dot-color:#935a0a}
#ped-att .ped-att-touch-caption{display:none}
#ped-att .ped-att-clear{min-height:44px;touch-action:manipulation}
#ped-att .ped-att-clear:disabled{display:none}
#ped-att .ped-att-empty{font-size:.7rem;white-space:normal}
@media(max-width:630px){
 #ped-att .ped-att-touch-scroll{overflow:auto}
 #ped-att .ped-att-touch thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #ped-att .ped-att-touch tbody,#ped-att .ped-att-touch tr{display:block}
 #ped-att .ped-att-touch tbody tr{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;padding:.25rem .35rem;border-bottom:1px solid #e6dfea}
 #ped-att .ped-att-touch tbody th{grid-column:1/-1}
 #ped-att .ped-att-touch td,#ped-att .ped-att-touch th{border:0}
 #ped-att .ped-att-touch td[colspan]{grid-column:1/-1;white-space:normal}
 #ped-att .ped-att-touch-caption{display:inline;font-size:.7rem;font-weight:700;line-height:1.15}
 #ped-att .ped-att-touch-option{gap:.15rem}
 #ped-att .ped-att-clear{font-size:.7rem;padding:.25rem;white-space:normal}
}
