/* Consultas de compras em cartões no celular; tabelas e grades preservadas no tablet. */
@media screen and (max-width:760px){
 table.unified-purchases-table.touch-cards{display:block;min-width:0;width:100%;border-collapse:separate}
 table.unified-purchases-table.touch-cards thead{display:block}
 table.unified-purchases-table.touch-cards thead tr:not(.debt-totals){display:none}
 table.unified-purchases-table.touch-cards tbody{display:block;width:100%}
 table.unified-purchases-table.touch-cards tbody tr{display:block;width:100%;margin:10px 0;padding:12px;border:1px solid #d4dfe4;border-radius:9px;background:#fff;content-visibility:auto;contain-intrinsic-size:auto 520px}
 table.unified-purchases-table.touch-cards tbody td{display:grid;grid-template-columns:minmax(95px,38%) minmax(0,1fr);align-items:center;gap:10px;padding:8px 0!important;border:0!important;min-width:0;text-align:left!important;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.45}
 table.unified-purchases-table.touch-cards tbody td::before{content:attr(data-label);font-size:12px;font-weight:600;color:#526078;line-height:1.4}
 table.unified-purchases-table.touch-cards tbody td[colspan]{display:block}
 table.unified-purchases-table.touch-cards tbody td[colspan]::before{content:none}
 table.unified-purchases-table.touch-cards tbody td.row-actions{display:flex;flex-wrap:wrap;gap:8px}
 table.unified-purchases-table.touch-cards tbody td.row-actions::before{flex-basis:100%}
 table.unified-purchases-table.touch-cards .row-actions button{flex:1 1 120px;width:auto;min-height:44px;max-width:100%;white-space:normal}
 table.unified-purchases-table.touch-cards .debt-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:10px 0}
 table.unified-purchases-table.touch-cards .debt-totals th{padding:8px 4px;min-width:0;text-align:left;font-size:12px;white-space:normal}
 table.unified-purchases-table.touch-cards .debt-totals th:first-child{grid-column:1/-1}
 table.unified-purchases-table.touch-cards .debt-totals th:last-child{display:none}
 table.unified-purchases-table.touch-cards .debt-totals span,table.unified-purchases-table.touch-cards .debt-totals strong{display:block}
}
@media (prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
}
