/* Layout exclusivo da listagem DTRP, sem alterar componentes externos. */
.dtrp-layout-head{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;align-items:center;gap:16px}
.dtrp-layout-head h3{margin:0}.dtrp-layout-head p{margin:4px 0}
.dtrp-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.dtrp-overview article{display:grid;gap:4px;min-width:0;padding:16px;background:#fff;border:1px solid var(--line);border-radius:10px}
.dtrp-overview span,.dtrp-overview small{color:#53635c}.dtrp-overview strong{font-size:1.5rem}
.dtrp-filter-shell{margin:14px 0;border:1px solid var(--line);background:#fff;border-radius:12px;overflow:hidden}
.dtrp-filter-shell>summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;padding:14px 18px;font-weight:750;color:#164c38}
.dtrp-filter-shell>summary span{font-size:.8rem;font-weight:500}.dtrp-filter-shell>.dtrp-filters{margin:0;border:0;box-shadow:none}
.dtrp-unit-toggle{font-size:20px;color:#176344;min-width:44px;min-height:44px}.dtrp-record-list[hidden],.dtrp-empty[hidden]{display:none}
.dtrp-unit-toggle:focus-visible,.dtrp-filter-shell>summary:focus-visible{outline:3px solid #176ca4;outline-offset:-3px}
@media(max-width:1000px){.dtrp-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dtrp-overview{grid-template-columns:1fr}}
/* Canonical card listing: replaces the former flat 1100px table and mobile overrides. */
#dtrp-groups .dtrp-unit-head{position:relative;padding:10px 14px 10px 48px;background:radial-gradient(ellipse at 100% 100%,#dceee3,transparent 65%),#f1f7f3;gap:16px}
#dtrp-groups .dtrp-unit-head::before{content:"";position:absolute;left:14px;top:14px;width:22px;height:28px;background:url("/card-art/dtrp-location.svg") no-repeat center/contain;pointer-events:none}
.dtrp-record-list{--dtrp-columns:minmax(175px,1.7fr) minmax(130px,1.2fr) minmax(105px,1fr) repeat(2,minmax(76px,.7fr)) minmax(50px,.45fr) minmax(85px,.8fr) minmax(105px,1fr) minmax(74px,.65fr);display:grid;gap:0;padding:8px;background:#f5f8f6;overflow:visible}
.dtrp-record-list .dtrp-record-card{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));width:100%;min-width:0;max-width:100%;align-items:stretch;gap:0;box-sizing:border-box}
.dtrp-record-head{display:none;background:#f0f5f2;border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0}
.dtrp-record-head>span{padding:12px 7px;font-weight:700;overflow-wrap:anywhere}
.dtrp-record-list .dtrp-record-card{position:relative;margin:0 0 8px;padding:0;border:1px solid var(--line);border-left:4px solid #148653;border-radius:12px;background:#fff}
.dtrp-record-list .dtrp-record-card:last-child{margin-bottom:0}
.dtrp-record-card>div{padding:14px 7px;min-width:0;overflow-wrap:anywhere;line-height:1.45}
.dtrp-record-card > div > span{display:block;margin-bottom:7px}
.dtrp-record-card .dtrp-residue-entry{position:relative;display:block;grid-column:1/8;border:0;padding:16px 20px;align-self:stretch}
.dtrp-record-card .dtrp-document-cell{grid-column:8/13;border-left:1px solid var(--line);padding:16px 20px;text-align:left;text-align-last:left}
html body #dtrp-groups .dtrp-record-card .dtrp-residue-entry>strong,html body #dtrp-groups .dtrp-record-card .dtrp-document-cell>strong{font-size:20px;font-weight:750;line-height:1.4;margin:0 0 6px;color:var(--ink)}
.dtrp-residue-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}
.dtrp-residue-meta b,.dtrp-document-cell .dtrp-request-reference b{display:block;font-size:12px;font-weight:650;letter-spacing:.02em;color:#5e6d68;margin-bottom:5px}
.dtrp-residue-meta small{display:block;font-size:15px;line-height:1.5}
.dtrp-document-cell .dtrp-request-reference{display:block;font-size:15px;line-height:1.5;margin-top:8px}
.dtrp-record-card .dtrp-residue-entry>span{padding-left:28px}
.dtrp-record-card .dtrp-residue-entry::before{content:"";position:absolute;top:13px;left:20px;width:18px;height:22px;background:url("/card-art/dtrp-waste.svg") no-repeat center/contain;pointer-events:none}
.dtrp-record-card .dtrp-record-actions{display:grid;gap:5px}
.dtrp-record-actions button{min-height:38px;white-space:normal;width:100%;max-width:150px;margin-inline:auto}
@media(max-width:1100px){
 .dtrp-record-list .dtrp-record-head{display:none}
 .dtrp-record-list{gap:12px}
 .dtrp-record-list .dtrp-record-card{grid-template-columns:repeat(3,minmax(0,1fr));border-radius:12px;margin:0;padding:10px}
 .dtrp-record-card > div > span{display:block;margin-bottom:5px}
 .dtrp-record-card .dtrp-residue-entry,.dtrp-record-card .dtrp-document-cell{grid-column:1/-1}.dtrp-record-card .dtrp-document-cell{border-left:0;border-top:1px solid var(--line)}
}
@media(max-width:720px){
 #dtrp-groups .dtrp-unit-head{gap:10px}
 .dtrp-record-list{padding:8px;gap:8px}
 .dtrp-record-list .dtrp-record-card{grid-template-columns:minmax(0,1fr);padding:10px}
 .dtrp-record-card>div{padding:10px}.dtrp-record-card .dtrp-residue-entry,.dtrp-record-card .dtrp-document-cell{padding:10px 8px}.dtrp-record-card .dtrp-residue-entry::before{left:10px;top:13px}.dtrp-residue-meta{grid-template-columns:1fr;gap:12px}
 .dtrp-record-card .dtrp-record-actions{display:flex;gap:8px}
 .dtrp-record-actions button{flex:1;min-width:0}
}
html[data-text-capitalization] body .dtrp-record-head > span,html[data-text-capitalization] body .dtrp-record-head > span *{text-transform:uppercase!important}
html[data-text-capitalization] body .dtrp-record-head > span [data-case-initial]::first-letter{text-transform:uppercase!important}
.dtrp-filter-field{display:grid;gap:6px;min-width:0}.dtrp-filter-field select,.dtrp-filter-field input{width:100%}
.dtrp-record-card .art-days,.dtrp-record-card .inema-status,.dtrp-record-card .dtrp-seia-badge{width:fit-content;max-width:100%}
/* Títulos das colunas DTRP: caixa alta apenas na apresentação. */
html[data-text-capitalization] body .dtrp-record-card > div > span,
html[data-text-capitalization] body .dtrp-record-card > div > span *,
html[data-text-capitalization] body .dtrp-record-card .dtrp-request-reference > b,
html[data-text-capitalization] body .dtrp-record-card .dtrp-request-reference > b *,
html[data-text-capitalization] body .dtrp-record-card .dtrp-final-destination > b,
html[data-text-capitalization] body .dtrp-record-card .dtrp-final-destination > b *{text-transform:uppercase!important}
html[data-text-capitalization] body .dtrp-record-card > div > span [data-case-initial]::first-letter,
html[data-text-capitalization] body .dtrp-record-card .dtrp-request-reference > b [data-case-initial]::first-letter,
html[data-text-capitalization] body .dtrp-record-card .dtrp-final-destination > b [data-case-initial]::first-letter{text-transform:uppercase!important}
/* Alinhamento único dos títulos e dados da listagem DTRP. */
html body .dtrp-record-head > span,
html body .dtrp-record-card > div:not(.dtrp-residue-entry):not(.dtrp-document-cell),
html body .dtrp-record-card > div:not(.dtrp-residue-entry):not(.dtrp-document-cell) > *{text-align:center;text-align-last:center}
html body .dtrp-record-card .art-days,
html body .dtrp-record-card .inema-status,
html body .dtrp-record-card .dtrp-seia-badge{margin-left:auto;margin-right:auto}

/* Descriptions and document numbers share one left-aligned presentation. */
html body .dtrp-record-card .dtrp-residue-entry,html body .dtrp-record-card .dtrp-residue-entry *,html body .dtrp-record-card .dtrp-document-cell,html body .dtrp-record-card .dtrp-document-cell *{text-align:left;text-align-last:left}

.dtrp-record-card>div:nth-child(n+3){grid-column:span 2;border-top:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;padding:10px 8px}
@media(max-width:1100px){.dtrp-record-card>div:nth-child(n+3){grid-column:auto}}
@media(max-width:720px){html body #dtrp-groups .dtrp-record-card .dtrp-residue-entry>strong,html body #dtrp-groups .dtrp-record-card .dtrp-document-cell>strong{font-size:18px}}

html body #dtrp-groups .dtrp-record-card > div > span{font-size:11px;letter-spacing:.03em;font-weight:650}
