.dpma-shipment-details-toggle { display:none; }
@media (max-width:700px), (max-width:1100px) and (pointer:coarse) {
  body main table.dpma-mobile-cards tbody tr { margin-bottom:10px; }
  body main table.dpma-mobile-cards tbody tr>td:nth-child(n) { padding:6px 10px!important; }
  body main table.dpma-mobile-cards tbody td[data-mobile-label]::before {
    display:inline; margin-right:8px; font-size:14px!important;
  }
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact] {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 10px;
    padding:12px; border-radius:10px;
  }
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact]>td:nth-child(n) {
    width:auto!important; min-width:0!important; padding:0!important; border:0!important;
    font-size:16px!important; line-height:1.4;
  }
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact]>td[data-dpma-record-role="title"],
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact]>td[data-dpma-record-role="name"],
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact]>td[data-dpma-record-role="description"] { grid-column:1/-1; }
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact]>td[data-dpma-record-role="title"],
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact]>td[data-dpma-record-role="name"] { font-weight:700; }
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact]>td[data-dpma-record-role="name"]::before,
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact]>td[data-dpma-record-role="description"]::before { display:none; }
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact]>td[data-dpma-record-role="metric"]::before { display:block; margin:0; }
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact]:not([data-dpma-shipment-expanded="true"])>td[data-dpma-record-secondary="true"] { display:none!important; }
  body main table.dpma-mobile-cards tbody tr[data-dpma-record-compact][data-dpma-shipment-expanded="true"]>td[data-dpma-record-secondary="true"] {
    grid-column:1/-1; padding-top:6px!important; border-top:1px solid var(--line)!important;
  }
  body main table.dpma-mobile-cards .dpma-shipment-details-toggle {
    display:inline-block; min-height:44px; padding:7px 0; margin:0 0 0 10px;
    border:0; background:transparent; color:#176b52; font-size:14px!important; font-weight:700;
  }
  html[data-theme="dark"] body main table.dpma-mobile-cards .dpma-shipment-details-toggle { color:#8cdec1; }
  body main #clients table.dpma-mobile-cards #clientRows tr>td:nth-child(n) { padding:6px 10px!important; }
  body main #clients table.dpma-mobile-cards .dpma-mobile-client-name { font-size:16px; font-weight:700; }
  body main .simec-quote-form, body main .simec-quote-saved, body main .metric,
  body main .dpma-insights>section, body main .simec-document-import { padding:12px!important; }
  body main .field { margin:10px 0; gap:5px; }
  body main .toolbar { margin-bottom:10px; gap:8px; }
  body main #inbox .conversation-item { padding:10px!important; gap:8px; }
  body main #inbox .bubble { padding:9px 11px; }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact] {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(105px,auto);
    grid-template-areas:'order branch' 'client client' 'description description' 'product quantity';
    gap:5px 10px; padding:12px; margin-bottom:10px; border-radius:10px;
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(n) {
    width:auto!important; min-width:0!important; max-width:100%!important;
    padding:0!important; border:0!important;
    font-size:16px!important; line-height:1.4; align-self:start;
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(n)::before {
    display:none;
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(1) {
    grid-area:branch; text-align:right; font-size:14px!important; color:var(--muted);
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(2) {
    grid-area:order; font-weight:700;
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(2)::before {
    display:inline; content:'Pedido '; font-size:14px!important; color:var(--muted);
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(4) {
    grid-area:client; font-weight:700;
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(7) {
    grid-area:description; margin:2px 0 3px; overflow-wrap:anywhere;
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(5) {
    grid-area:product; font-size:14px!important; color:var(--muted);
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(5)::before {
    display:inline; content:'Código '; font-size:14px!important;
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(8) {
    grid-area:quantity; text-align:right; font-size:20px!important; font-weight:800; color:#176b52;
  }
  html[data-theme="dark"] body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]>td:nth-child(8) {
    color:#8cdec1;
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]:not([data-dpma-shipment-expanded="true"])>td:nth-child(3),
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]:not([data-dpma-shipment-expanded="true"])>td:nth-child(6),
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]:not([data-dpma-shipment-expanded="true"])>td:nth-child(9),
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact]:not([data-dpma-shipment-expanded="true"])>td:nth-child(10) {
    display:none!important;
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact][data-dpma-shipment-expanded="true"]>td:nth-child(3),
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact][data-dpma-shipment-expanded="true"]>td:nth-child(6),
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact][data-dpma-shipment-expanded="true"]>td:nth-child(9),
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-compact][data-dpma-shipment-expanded="true"]>td:nth-child(10) {
    grid-column:1/-1; border-top:1px solid var(--line)!important; padding-top:7px!important;
  }
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-expanded="true"]>td:nth-child(3)::before,
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-expanded="true"]>td:nth-child(6)::before,
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-expanded="true"]>td:nth-child(9)::before,
  body main table.dpma-mobile-cards #shipmentControlRows tr[data-dpma-shipment-expanded="true"]>td:nth-child(10)::before {
    display:inline; margin-right:7px; color:var(--muted);
  }
  body main table.dpma-mobile-cards #shipmentControlRows .dpma-shipment-details-toggle {
    display:block; min-height:44px; margin:2px 0 0; padding:8px 0;
    font-size:14px!important; font-weight:700; color:#176b52; background:transparent;
    border:0; border-radius:6px; text-align:left; cursor:pointer;
  }
  html[data-theme="dark"] body main table.dpma-mobile-cards #shipmentControlRows .dpma-shipment-details-toggle {
    color:#8cdec1;
  }
}
