/* Approved four-column mobile Orders view; original desktop/source nodes remain untouched. */
.dpma-orders-projection{display:none}
@media(max-width:700px),(max-width:1100px) and (pointer:coarse){
  html:has(body.dpma-orders-landscape){overflow:hidden!important;height:100%}
  body.dpma-orders-landscape{position:fixed!important;inset:0 auto auto 0;box-sizing:border-box;display:block!important;margin:0!important;width:var(--dpma-orders-width)!important;max-width:none!important;height:var(--dpma-orders-height)!important;min-height:0!important;overflow:hidden!important;padding:0!important;overscroll-behavior:contain;background:#0e1a17}
  body.dpma-orders-rotated{left:var(--dpma-orders-physical-width)!important;transform:rotate(90deg);transform-origin:0 0}
  body.dpma-orders-landscape>main{position:absolute!important;top:50px;bottom:54px;left:0;right:0;width:100%!important;max-width:none!important;height:calc(var(--dpma-orders-height) - 104px)!important;padding:10px 16px 16px!important;min-height:0!important;margin:0!important;overflow:auto!important;overscroll-behavior:contain}
  body.dpma-orders-landscape .dpma-mobile-bar{position:absolute;top:0;left:0;min-height:50px;height:50px;padding:3px 12px}
  body.dpma-orders-landscape .dpma-mobile-bar small{display:none}
  body.dpma-orders-landscape .dpma-mobile-tabs{height:54px;min-height:0;padding:2px 8px;background:#153a39}
  body.dpma-orders-landscape .dpma-mobile-tabs button{min-height:48px;padding:2px!important}
  body.dpma-orders-landscape>aside{height:var(--dpma-orders-height)!important;max-height:var(--dpma-orders-height);width:min(310px,var(--dpma-orders-width));max-width:88%;padding-top:8px}
  body.dpma-orders-landscape .dpma-mobile-backdrop{height:var(--dpma-orders-height)!important}
  body.dpma-orders-landscape #toast{max-width:calc(var(--dpma-orders-width) - 24px)}
  .dpma-orders-page .dpma-orders-source{display:none!important}
  .dpma-orders-page .dpma-orders-projection:not([hidden]){display:block;max-width:100%;min-width:0;color:#e2ebe7}
  .dpma-orders-page .dpma-orders-tools{display:flex;gap:14px;align-items:center;margin:0 0 8px}
  .dpma-orders-page .dpma-orders-tools>button{background:transparent;color:#78d4b6;border:1px solid #35574c;border-radius:8px;padding:4px 12px;font-size:14px;white-space:nowrap;min-height:44px}
  .dpma-orders-page .dpma-orders-sort-panel{margin-bottom:8px}
  .dpma-orders-page .dpma-orders-sort-panel label{display:flex;gap:10px;align-items:center;color:#c2d6cc;font-size:14px}
  .dpma-orders-page .dpma-orders-sort-panel select{width:auto;max-width:100%;background:#15231e;color:#e2ebe7;border:1px solid #35574c}
  .dpma-orders-page .dpma-orders-hint{font-size:14px;line-height:1.35;color:#b5c9c1;margin:4px 0}
  .dpma-orders-page .dpma-orders-list{border:1px solid #355047;border-radius:10px;overflow:hidden;background:#15231e}
  .dpma-orders-page .dpma-orders-row{display:grid;grid-template-columns:minmax(106px,1.05fr) minmax(170px,3.5fr) minmax(112px,1.15fr) minmax(116px,1.15fr);align-items:center;gap:8px;min-height:48px;padding:0 10px;border-bottom:1px solid #324a42;font-size:16px;line-height:1.25;box-sizing:border-box}
  .dpma-orders-page .dpma-orders-row:last-child{border-bottom:0}
  .dpma-orders-page .dpma-orders-row>[role=cell]{min-width:0;white-space:nowrap;overflow-x:auto;scrollbar-width:thin;padding:4px 0}
  .dpma-orders-page .dpma-orders-row>[role=cell]:nth-child(3){text-align:right;font-variant-numeric:tabular-nums}
  .dpma-orders-page .dpma-orders-row>[role=cell]:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}
  .dpma-orders-page .dpma-orders-head{background:#1b3029;color:#c2d6cc;min-height:44px;font-size:14px;font-weight:700}
  .dpma-orders-page .dpma-orders-head>[role=columnheader]:nth-child(n+3){text-align:right}
  .dpma-orders-page .dpma-orders-head button{min-height:44px;background:transparent;color:inherit;padding:0;font-size:14px;text-align:inherit;border:0}
  .dpma-orders-page button[data-dpma-order-number]{background:transparent!important;color:#78d4b6!important;border:0!important;padding:4px 0!important;min-height:44px;min-width:44px;font-size:16px;font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
  .dpma-orders-page .dpma-orders-empty{padding:12px;font-size:16px;color:#e2ebe7}
  .dpma-orders-page .dpma-orders-detail{padding:0 0 12px;color:#e2ebe7}
  .dpma-orders-page .dpma-orders-detail>button{min-height:44px;background:#20463a;color:#d9eee7;border:1px solid #517567;border-radius:8px;padding:6px 12px;font-size:16px}
  .dpma-orders-page .dpma-orders-detail h2{font-size:20px;margin:8px 0;overflow-wrap:anywhere}
  .dpma-orders-page .dpma-orders-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:12px 0 0;border:1px solid #355047;border-radius:10px;overflow:hidden;background:#15231e}
  .dpma-orders-page .dpma-orders-fields>div{padding:10px;border-bottom:1px solid #324a42;min-width:0}
  .dpma-orders-page .dpma-orders-fields dt{color:#b5c9c1;font-size:14px;margin:0 0 4px}
  .dpma-orders-page .dpma-orders-fields dd{color:#e2ebe7;font-size:16px;margin:0;overflow-wrap:anywhere}
  .dpma-orders-page .dpma-orders-status{background:#3a311b;color:#ffe2a0;border-left:4px solid #ad843b;padding:10px;font-size:14px}
  /* Keep original search and sort controls available, but out of the compact default list. */
  #orders.dpma-orders-page>.toolbar{display:none!important}
  #orders.dpma-orders-page:not(.dpma-orders-filters-open)>.order-filters,
  #orders.dpma-orders-page:not(.dpma-orders-filters-open) .simec-order-toolbar,
  #perfilorOrders.dpma-orders-page:not(.dpma-orders-filters-open)>.perfilor-orders-filters,
  #perfilorOrders.dpma-orders-page:not(.dpma-orders-filters-open)>.perfilor-orders-actions{display:none!important}
  .dpma-orders-page .order-subtitle{margin:0 0 6px}
  .dpma-orders-page .order-subtitle h2,#perfilorOrders.dpma-orders-page>h2{font-size:20px;margin:0 0 6px;color:#e2ebe7}
  #perfilorOrders.dpma-orders-page>p:not(.perfilor-orders-status){display:none}
  #perfilorOrders.dpma-orders-page>h2{display:none}
  #perfilorOrders.dpma-orders-page>.perfilor-orders-status{font-size:14px;margin:4px 0 8px;line-height:1.3;background:#1b3029;color:#c2d6cc;border:1px solid #355047;padding:8px}
  .dpma-orders-page .order-filters,.dpma-orders-page .perfilor-orders-filters{flex-direction:row;flex-wrap:wrap;gap:8px}
  .dpma-orders-page .order-filters>*{flex:1;min-width:160px!important;width:auto!important}
  #perfilorOrders.dpma-orders-page .perfilor-orders-pagination,
  #perfilorOrders.dpma-orders-page #perfilorOrdersPagination{font-size:14px;color:#b5c9c1}
  #perfilorOrders.dpma-orders-page .perfilor-orders-pagination button{color:#78d4b6}
  .dpma-orders-page [hidden]{display:none!important}
}
