/* Indicadores legibles dentro de la fila y papelera al final, sin capas superpuestas. */
.dp2-app .dp-desktop-content:has(>.dpr-records-page){overflow:hidden}
.dpr-records-page{display:grid;grid-template-rows:auto auto minmax(0,1fr);height:100%;min-height:0}
.dpr-records-table{box-sizing:border-box;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;width:100%}
.dpr-records-table table{min-width:0!important;table-layout:fixed;width:100%}
.dpr-records-table thead th{background:#f8fafd;box-shadow:0 1px 0 #d7e1ef;position:sticky;top:0;z-index:4}
.dpr-records-table th{font-size:10.5px;padding:11px 7px}
.dpr-records-table td{font-size:12.5px;line-height:1.35;overflow-wrap:anywhere;padding:12px 7px}
.dpr-records-table col:nth-child(1){width:8%}.dpr-records-table col:nth-child(2){width:13%}.dpr-records-table col:nth-child(3){width:15%}.dpr-records-table col:nth-child(4){width:18%}.dpr-records-table col:nth-child(5){width:6%}.dpr-records-table col:nth-child(6){width:7%}.dpr-records-table col:nth-child(7){width:9%}.dpr-records-table col:nth-child(8){width:9%}.dpr-records-table col:nth-child(9){width:10%}.dpr-records-table col:nth-child(10){width:5%}
.dpr-records-table th:nth-child(5),.dpr-records-table th:nth-child(6),.dpr-records-table td:nth-child(5),.dpr-records-table td:nth-child(6){text-align:center}
.dpr-records-table th:last-child,.dpr-records-table td:last-child{text-align:right}
.dpr-records-table td b{font-size:13.5px;line-height:1.35}.dpr-records-table td small{font-size:11px;line-height:1.3}
.dpr-record-value b{color:#071f4f;font-size:17px!important;letter-spacing:.01em}.dpr-record-value small{margin-top:3px}
.dpr-record-actions{align-items:center;display:flex;justify-content:flex-end;white-space:nowrap}
.dpr-record-actions .btn{margin:0}
.dpr-clickable-record{cursor:pointer;transition:background-color .15s ease,box-shadow .15s ease}
.dpr-clickable-record:hover,.dpr-clickable-record:focus{background:#eef6ff;box-shadow:inset 3px 0 #0756d9;outline:0}
.dpr-clickable-record.alert-row:hover,.dpr-clickable-record.alert-row:focus{background:#fff0f1}
.dpr-record-media{padding-left:5px!important;padding-right:5px!important;vertical-align:middle}
.dpr-record-indicator{align-items:center!important;background:#f3f6fa;border:1px solid #d5deea;border-radius:9px;box-sizing:border-box;color:#8795a8;display:inline-flex!important;flex-direction:row!important;gap:4px;height:38px!important;justify-content:center!important;line-height:1!important;max-height:38px!important;max-width:100%;min-height:38px!important;padding:0 5px!important;width:60px!important;writing-mode:horizontal-tb}
.dpr-record-indicator svg{display:block;fill:none;flex:0 0 18px;height:18px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:18px}
.dpr-record-indicator-state{white-space:nowrap;overflow-wrap:normal;display:inline!important;font-size:12px;font-weight:800;line-height:1!important}
.dpr-record-indicator.photo.present{background:#eaf4ff;border-color:#9bc4ed;color:#075da8}
.dpr-record-indicator.comment.present{background:#eaf8ef;border-color:#a6dab9;color:#137746}
.dpr-record-indicator.absent{background:#f2f4f7;border-color:#d9e0e9;color:#8996a7;filter:none;opacity:1}
.dpr-record-icon-action{align-items:center;display:inline-flex!important;height:44px!important;justify-content:center;min-width:46px!important;padding:0!important;width:46px!important}
.dpr-record-icon-action svg{fill:none;height:23px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.9;width:23px}
.dpr-record-state small{display:block;margin-top:5px;max-width:190px;color:#687892;font-size:11px!important;white-space:normal}
.dpr-records-table .dpr-status{font-size:11px;padding:4px 7px}
.dpr-status.resolved{background:#efe8ff;border:1px solid #a984e8;color:#54258a;font-weight:850;white-space:normal}
.dpr-records-table tr:has(.dpr-status.resolved){background:#faf7ff;box-shadow:inset 4px 0 #7a45b8}
.dpr-records-table tr:has(.dpr-status.resolved):hover,.dpr-records-table tr:has(.dpr-status.resolved):focus{background:#f3ecff}
.dpr-record-state:has(.dpr-status.resolved) small{background:#efe8ff;border-left:3px solid #7a45b8;border-radius:5px;color:#54258a;font-weight:750;padding:5px 6px}
.dpr-record-reading.incident:has(.dpr-status.resolved){border-left-color:#7a45b8}
.dpr-record-reading.incident:has(.dpr-status.resolved)>dl>div:last-child{background:#efe8ff;border-left:3px solid #7a45b8}
.dpr-record-dialog{overflow:auto;width:min(980px,calc(100vw - 28px))}
.dpr-record-dialog>header{position:sticky;top:0;z-index:3;border-bottom:1px solid #dce5f0;background:#fff}
.dpr-record-dialog>main{background:#f6f9fd}
.dpr-record-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.dpr-record-summary>div,.dpr-record-reading{border:1px solid #d7e1ef;border-radius:10px;background:#fff}
.dpr-record-summary>div{padding:10px 12px}
.dpr-record-summary dt,.dpr-record-reading dt{color:#61718c;font-size:10px;font-weight:750;text-transform:uppercase}
.dpr-record-summary dd,.dpr-record-reading dd{margin:3px 0 0;color:#102453;font-weight:750}
.dpr-record-reading{display:grid;gap:13px;padding:16px}
.dpr-record-reading.incident{border-left:4px solid #dc3545}
.dpr-record-reading>header,.dpr-record-reading>header>div{align-items:center;display:flex;gap:10px;justify-content:space-between}
.dpr-record-reading>header>div{justify-content:flex-start}.dpr-record-reading>header span{display:grid}.dpr-record-reading>header small{color:#61718c}
.dpr-record-reading>dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.dpr-record-reading>dl>div{padding:9px;border-radius:7px;background:#f5f8fc}
.dpr-record-comment,.dpr-record-evidence{display:grid;gap:7px}.dpr-record-comment h3,.dpr-record-evidence h3{margin:0;color:#173b70;font-size:13px}.dpr-record-comment p,.dpr-record-evidence p{margin:0;color:#536783}
.dpr-record-evidence>div{display:flex;flex-wrap:wrap;gap:10px}.dpr-record-evidence a{display:grid;gap:5px;width:150px;color:#24426f;font-size:10px;text-decoration:none}.dpr-record-evidence img{width:150px;height:105px;border:1px solid #cbd8e8;border-radius:8px;object-fit:cover}.dpr-record-evidence a:hover img{outline:3px solid #8bb7ee}
.dpr-record-dialog-note{margin:0;padding:10px 12px;border-radius:8px;background:#fff1f2;color:#a51e2a}
@media(max-width:760px){.dpr-record-summary,.dpr-record-reading>dl{grid-template-columns:1fr}.dpr-record-evidence a,.dpr-record-evidence img{width:120px}.dpr-record-evidence img{height:90px}}

.dpr-record-dialog{box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr);height:min(760px,calc(100vh - 24px));max-height:calc(100vh - 24px);overflow:hidden!important;width:min(1180px,calc(100vw - 24px))}
.dpr-record-dialog>header{min-height:0;padding:13px 18px 11px;position:relative}
.dpr-record-dialog>header h2{font-size:24px;line-height:1.15;margin:2px 0}
.dpr-record-dialog>header p{font-size:13px;margin:3px 0 0}
.dpr-record-dialog>header .btn{min-height:38px;padding:7px 14px}
.dpr-record-dialog>main{box-sizing:border-box;display:grid;gap:9px;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;overflow:hidden!important;padding:10px 18px 14px}
.dpr-record-summary{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.dpr-record-summary>div{min-width:0;padding:7px 8px}
.dpr-record-summary dt{font-size:8.5px;line-height:1.15}
.dpr-record-summary dd{font-size:12px;line-height:1.25;margin-top:2px;overflow-wrap:anywhere}
.dpr-record-reading{box-sizing:border-box;display:grid;gap:8px;grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr);grid-template-rows:auto auto minmax(0,1fr);min-height:0;overflow:hidden;padding:11px 13px}
.dpr-record-reading>header{grid-column:1/-1;min-height:38px}
.dpr-record-reading>header .dpr-icon{height:30px;width:30px}
.dpr-record-reading>header b{font-size:16px}.dpr-record-reading>header small{font-size:11px}
.dpr-record-reading-actions{align-items:center;margin-top:0}
.dpr-record-reading-actions .btn{min-height:36px;padding:6px 13px}
.dpr-record-reading>dl{align-self:start;grid-column:1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.dpr-record-reading>dl>div{min-width:0;padding:7px 8px}
.dpr-record-reading dt{font-size:8.5px;line-height:1.15}.dpr-record-reading dd{font-size:12px;line-height:1.25;overflow-wrap:anywhere}
.dpr-record-comment{align-self:start;background:#f8fafd;border:1px solid #e0e7f0;border-radius:7px;grid-column:1;grid-row:3;min-height:0;padding:8px}
.dpr-record-comment h3,.dpr-record-evidence h3{font-size:11px}.dpr-record-comment p{font-size:12px;line-height:1.3;white-space:pre-wrap}
.dpr-record-evidence{align-self:stretch;background:#f8fafd;border:1px solid #e0e7f0;border-radius:7px;grid-column:2;grid-row:2/4;min-height:0;padding:8px}
.dpr-record-evidence>div{align-content:start;display:grid;gap:6px;grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;overflow:hidden}
.dpr-record-evidence a{gap:3px;min-width:0;width:auto}.dpr-record-evidence img{height:76px;max-width:100%;object-fit:contain;width:100%}
.dpr-record-evidence a span{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dpr-record-dialog-note{font-size:11px;padding:6px 9px}
@media(max-width:1000px){.dpr-record-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.dpr-record-dialog{height:calc(100vh - 16px);max-height:calc(100vh - 16px);width:calc(100vw - 16px)}.dpr-record-reading{grid-template-columns:minmax(0,1fr) minmax(210px,.55fr)}}
@media(max-height:760px){.dpr-record-dialog>header{padding-block:8px}.dpr-record-dialog>header h2{font-size:20px}.dpr-record-dialog>main{gap:6px;padding-block:7px}.dpr-record-summary>div{padding:5px 7px}.dpr-record-reading{gap:6px;padding:8px 10px}.dpr-record-evidence img{height:58px}}

.dpr-records-table.dpr-report-reading-table col:nth-child(1){width:10%}
.dpr-records-table.dpr-report-reading-table col:nth-child(2){width:13%}
.dpr-records-table.dpr-report-reading-table col:nth-child(3){width:15%}
.dpr-records-table.dpr-report-reading-table col:nth-child(4){width:21%}
.dpr-records-table.dpr-report-reading-table col:nth-child(5){width:6%}
.dpr-records-table.dpr-report-reading-table col:nth-child(6){width:7%}
.dpr-records-table.dpr-report-reading-table col:nth-child(7){width:8%}
.dpr-records-table.dpr-report-reading-table col:nth-child(8){width:9%}
.dpr-records-table.dpr-report-reading-table col:nth-child(9){width:11%}
.dpr-report-reading-table td:nth-child(3){min-width:0;white-space:normal!important}
.dpr-report-reading-table td:nth-child(3)>b,.dpr-report-reading-table td:nth-child(3)>small{max-width:100%;overflow-wrap:anywhere}
.dpr-report-reading-table td.dpr-record-element{align-items:start;display:grid;gap:8px;grid-template-columns:24px minmax(0,1fr);min-width:0}
.dpr-report-reading-table .dpr-record-element>.dpr-icon{grid-column:1;height:23px;position:static!important;width:23px}
.dpr-report-reading-table .dpr-record-element>span{display:block;grid-column:2;min-width:0;overflow-wrap:anywhere}

/* El valor medido es el dato principal: rango, unidad y estado quedan como contexto. */
.dpr-record-value b,
.dpr-record-reading>dl>div:first-child dd{color:#061d49;font-size:20px!important;font-weight:400;letter-spacing:.01em;line-height:1.15}
.dpr-record-value small{color:#526681;font-size:11px;font-weight:700}
.dpr-record-reading>dl>div:first-child{background:#eaf3ff;border:1px solid #a9c9f5}

@media(max-width:760px){
  .dpr-record-value b,
  .dpr-record-reading>dl>div:first-child dd{font-size:18px!important}
}
.dpr-record-value b.dpr-text-value,.dpr-record-reading>dl>div:first-child dd.dpr-text-value{font-size:15px!important;font-weight:400!important;line-height:1.35!important}
