/* Desktop retains both independently visible sections. */
.mp-orders-mobile-tabs{display:none}
@media(max-width:760px){
.mp-body .mp-content-orders .mp-orders-mobile-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:5px;margin:0 0 10px;border-radius:14px;background:var(--mp-raised);box-shadow:var(--mp-card-shadow)}
.mp-body .mp-content-orders .mp-orders-mobile-tabs button{min-width:0;min-height:42px;border:0;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:5px;font:600 12px/1.2 inherit;color:var(--mp-muted);background:transparent;cursor:pointer}
.mp-body .mp-content-orders .mp-orders-mobile-tabs button[aria-selected="true"]{background:rgba(30,151,198,.14);color:var(--mp-ink);box-shadow:var(--mp-pressed)}
.mp-body .mp-content-orders .mp-orders-mobile-tabs img{width:22px;height:22px;object-fit:contain}
.mp-body .mp-content-orders .mp-orders-mobile-tabs button span{font-size:12px;color:var(--mp-muted)}
.mp-body .mp-content-orders .mp-tab-hidden{display:none!important}
.mp-body .mp-content-orders .wb-orders-current,.mp-body .mp-content-orders .wb-history-list{padding:9px!important}
.mp-body .mp-content-orders .wb-orders-current .mp-table tbody{gap:6px}
.mp-body .mp-content-orders .wb-orders-current .mp-table tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:8px!important;row-gap:4px!important;padding:10px!important;align-items:center;min-height:0;border-radius:12px}
.mp-body .mp-content-orders .wb-orders-current .mp-table td{display:block!important;grid-column:auto!important;order:0!important;min-width:0!important;max-width:100%;margin:0!important;padding:0!important;font-size:12px!important;line-height:1.32!important;text-align:left!important;align-items:initial!important}
.mp-body .mp-content-orders .wb-orders-current .mp-table td::before{display:none!important}
.mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(1){grid-column:1!important;grid-row:1;font-weight:700;font-size:13px!important;display:flex!important;align-items:center;gap:5px}
.mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(1) img{width:20px!important;height:20px!important}
.mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(2){grid-column:1!important;grid-row:2;color:var(--mp-muted);font-size:12px!important}
.mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(3){grid-column:1/-1!important;grid-row:3;font-weight:600;font-size:12.5px!important}
.mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(4){grid-column:1/-1!important;grid-row:4;color:var(--mp-muted);font-size:12px!important}
.mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(5){grid-column:1!important;grid-row:5;font-weight:700;font-size:13px!important}
.mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(6){grid-column:2!important;grid-row:5;text-align:right!important}
.mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(7){grid-column:2!important;grid-row:1/3;align-self:center!important;justify-self:end!important;display:flex!important;margin:0!important}
.mp-body .mp-content-orders .wb-orders-current .wb-order-list-actions{display:flex;gap:5px;align-items:center;justify-content:flex-end;width:auto!important}
.mp-body .mp-content-orders .wb-orders-current .wb-order-list-actions :is(a,button){width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0!important;padding:5px!important;display:grid;place-items:center}
.mp-body .mp-content-orders .wb-orders-current .mp-order-status{font-size:12px!important;padding:4px 7px!important}
/* Archived legacy orders: different visual language, clearly read-only. */
.mp-body .mp-content-orders .wb-history-list{background:linear-gradient(170deg,rgba(111,134,156,.13),var(--mp-raised))!important}
.mp-body .mp-content-orders .wb-history-list .mp-sectionhead h2::after{content:'Somente consulta';display:inline-flex;margin-left:7px;vertical-align:middle;font-size:12px;font-weight:600;color:#57738b;background:rgba(114,146,173,.16);border-radius:99px;padding:4px 7px}
.mp-body .mp-content-orders .wb-history-orders tbody{gap:7px}
.mp-body .mp-content-orders .wb-history-orders tbody tr{padding:10px!important;column-gap:8px!important;row-gap:4px!important;border-left:4px solid #83a2be!important;border-radius:9px!important;background:rgba(117,151,178,.075)!important;box-shadow:var(--mp-card-shadow)}
.mp-body .mp-content-orders .wb-history-orders td{font-size:12px!important}
.mp-body .mp-content-orders .wb-history-orders td::before{font-size:12px!important}
.mp-body .mp-content-orders .wb-history-orders td:nth-child(1) a{font-weight:750}
.mp-body .mp-content-orders .wb-history-orders td:nth-child(7){justify-content:flex-end!important}
}

/* v0.1.85: separação visível dos cartões históricos no mobile. */
@media (max-width:760px){
 .mp-body .mp-content-orders .wb-history-list .wb-history-orders tbody{
  display:grid!important;gap:15px!important;padding:5px 3px 8px!important;
 }
 .mp-body .mp-content-orders .wb-history-list .wb-history-orders tbody tr{
  position:relative;display:grid!important;margin:0!important;padding:12px!important;
  border:0!important;border-left:4px solid #6595be!important;border-radius:13px!important;
  background:linear-gradient(140deg,rgba(255,255,255,.84),rgba(226,237,246,.94))!important;
  box-shadow:0 2px 7px rgba(17,48,73,.11),0 10px 18px rgba(17,48,73,.075)!important;
 }
 .mp-body .mp-content-orders .wb-history-list .wb-history-orders tbody tr:not(:last-child)::after{
  content:'';position:absolute;bottom:-9px;left:16px;right:16px;height:1px;
  background:rgba(113,146,175,.17);pointer-events:none;
 }
}


/* v0.1.86 — histórico: cabeçalho único e três dados finais na mesma linha. */
.mp-history-inline-label{display:none}
@media(max-width:760px){
 .mp-body .mp-content-orders .wb-history-list .wb-history-orders tbody tr{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  column-gap:7px!important;row-gap:7px!important;align-items:start;
  padding:10px 10px 11px!important;
 }
 .mp-body .mp-content-orders .wb-history-orders tbody td{
  min-width:0!important;max-width:100%!important;grid-column:auto!important;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  gap:2px!important;margin:0!important;padding:0!important;text-align:left!important;
  font-size:12px!important;line-height:1.25!important;
 }
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(1){
  grid-column:1/-1!important;grid-row:1!important;display:flex!important;
  flex-direction:row!important;align-items:center!important;gap:5px!important;
  min-height:24px;
 }
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(1)::before{content:none!important;display:none!important}
 .mp-body .mp-content-orders .wb-history-orders .mp-order-code-cell img{
  width:24px!important;height:24px!important;object-fit:contain;flex:0 0 24px;
 }
 .mp-body .mp-content-orders .wb-history-orders .mp-history-inline-label{
  display:inline!important;font-size:12px!important;font-weight:650!important;
  color:var(--mp-muted);white-space:nowrap;
 }
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(1) a{
  font-size:13px!important;font-weight:750!important;white-space:nowrap;
 }
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(2),
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(3){grid-column:1/-1!important}
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(4){grid-column:1!important;grid-row:4!important}
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(5){grid-column:2!important;grid-row:4!important}
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(6){grid-column:3!important;grid-row:4!important}
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(7){
  grid-column:3!important;grid-row:1!important;justify-self:end!important;
  align-self:center!important;display:flex!important;align-items:flex-end!important;
  width:auto!important;margin:0!important;
 }
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(7)::before{content:none!important;display:none!important}
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(7) :is(svg,img){display:block!important;width:16px!important;height:16px!important;flex:0 0 16px}
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(7) :is(a,button){
  min-height:30px!important;min-width:30px!important;width:30px!important;height:30px!important;
  padding:0!important;border-radius:9px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  font-size:0!important;text-decoration:none!important;gap:0!important;
 }
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(7) :is(a,button) span{display:none!important}
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(7) :is(a,button)::after{content:none!important;display:none!important}
}

/* v0.1.87: busca global segura dentro da viewport, data no menu de ações. */
@media(max-width:760px){
 .mp-body .mp-topbar{position:relative!important;isolation:isolate;overflow:visible!important;min-height:60px!important;box-sizing:border-box}
 .mp-body .mp-topbar .mp-topbar-start{min-width:0!important;max-width:100%!important}
 .mp-body .mp-topbar .wb-global-search,
 .mp-body .mp-topbar.mp-search-open .wb-global-search{position:absolute!important;order:unset!important;flex:none!important;left:10px!important;right:10px!important;top:calc(100% - 2px)!important;width:auto!important;max-width:calc(100% - 20px)!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;z-index:60!important}
 .mp-body .mp-topbar .wb-global-search .wb-search-field{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;box-shadow:0 9px 22px rgba(0,22,49,.2)!important}
 .mp-body .mp-topbar .wb-global-search input[type="search"]{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 .mp-body .mp-topbar .wb-search-results{max-width:100%;box-sizing:border-box}
 .mp-body .mp-topbar>.mp-live-date{display:none!important}
 .mp-body .wb-quick-menu .mp-live-date{display:flex!important;position:static!important;order:initial!important;flex:none!important;width:auto!important;height:auto!important;min-height:0!important;margin:6px 7px 3px!important;padding:9px 10px!important;justify-content:flex-start!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;border-radius:10px;background:rgba(14,62,104,.09);color:var(--mp-ink);font-size:12px}
 .mp-body .wb-quick-menu .mp-live-date strong{font-size:12px;color:var(--mp-ink)}
 .mp-body .wb-quick-menu .mp-live-date>svg{display:block;width:15px;height:15px}
 .mp-body .wb-quick-menu .mp-live-date .mp-date-long{display:none}
 .mp-body .wb-quick-menu .mp-live-date .mp-date-short{display:inline}
}

/* v0.1.89 — Correção responsiva do topo, sem campo sobreposto. */
@media (min-width:761px){
 .mp-body .mp-topbar{column-gap:clamp(12px,1.25vw,22px)!important}
 .mp-body .mp-topbar-start{min-width:0!important;flex:1 1 auto!important}
 .mp-body .mp-topbar .wb-global-search{width:min(280px,100%)!important;max-width:280px!important;min-width:175px!important;flex:0 1 280px!important}
 .mp-body .mp-topbar>.mp-live-date{display:flex!important;flex:0 0 auto!important;margin:0 5px 0 4px!important;padding:6px 9px!important;border-radius:9px!important;background:rgba(255,255,255,.055)!important;gap:7px!important;align-items:center!important;white-space:nowrap!important}
 .mp-body .mp-topbar>.mp-live-date .mp-date-long{display:none!important}
 .mp-body .mp-topbar>.mp-live-date .mp-date-short{display:inline!important;font-size:12px!important}
 .mp-body .mp-topbar>.mp-live-date strong{font-size:12px!important}
}
@media (min-width:761px) and (max-width:1100px){
 .mp-body .mp-topbar .wb-global-search{flex-basis:210px!important;max-width:210px!important}
 .mp-body .mp-topbar>.mp-live-date{gap:4px!important;padding:5px!important}
}
@media (max-width:760px){
 .mp-body .mp-topbar{transition:margin-bottom .18s ease!important}
 .mp-body .mp-topbar.mp-search-open{margin-bottom:60px!important}
 .mp-body .mp-topbar.mp-search-open .wb-global-search{top:calc(100% + 10px)!important;left:8px!important;right:8px!important;max-width:calc(100% - 16px)!important}
 .mp-body .mp-topbar.mp-search-open .wb-search-field{min-height:40px!important;border-radius:12px!important}
 .mp-body .mp-topbar.mp-search-open .wb-search-results{top:calc(100% + 3px)!important;max-height:min(48dvh,400px)!important;overflow-y:auto!important}
}

/* 0.1.90 — data/hora volta a aparecer no cabeçalho mobile, em linha exclusiva. */
@media(max-width:760px){
 .mp-body .mp-topbar>.mp-live-date{display:flex!important;position:relative!important;order:9!important;flex:0 0 100%!important;width:100%!important;min-height:22px!important;height:auto!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;margin:0!important;padding:0 3px 1px!important;background:transparent!important;box-shadow:none!important;font-size:12px!important;white-space:nowrap!important}
 .mp-body .mp-topbar>.mp-live-date .mp-date-long{display:none!important}
 .mp-body .mp-topbar>.mp-live-date .mp-date-short{display:inline!important;font-size:12px!important}
 .mp-body .mp-topbar>.mp-live-date strong{font-size:12px!important}
 .mp-body .mp-topbar>.mp-live-date>svg{width:13px!important;height:13px!important;display:block!important}
 .mp-body .mp-topbar.mp-search-open{margin-bottom:62px!important}
}
/* PDF de consulta: visual em relevo usando ícone 3D oficial de Documentos. */
.mp-body .wb-history-pdf-btn.is-compact{position:relative;overflow:visible;isolation:isolate;background:rgba(74,178,210,.10)!important;border:0!important;box-shadow:0 4px 12px rgba(11,52,83,.12)!important}
.mp-body .wb-history-pdf-btn.is-compact .mp-pdf-3d{display:block!important;object-fit:contain;width:25px!important;height:25px!important;max-width:100%!important;min-width:0!important;flex:0 0 auto;filter:drop-shadow(0 1px 2px rgba(0,0,0,.16))}
.mp-body .wb-history-pdf-btn.is-compact .mp-pdf-tag{position:absolute;bottom:-3px;right:-3px;background:#187fbe;color:white;border-radius:4px;padding:1px 3px;font-size:12px;font-weight:700;line-height:1.3;pointer-events:none}
@media(max-width:760px){
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(7) .mp-pdf-3d{display:block!important;width:24px!important;height:24px!important}
 .mp-body .mp-content-orders .wb-history-orders tbody td:nth-child(7) .mp-pdf-tag{display:block!important}
}

/* v0.1.91 — data à esquerda, hora à direita no cabeçalho mobile. */
@media(max-width:760px){
 .mp-body .mp-topbar>.mp-live-date{
  display:flex!important;order:9!important;flex:0 0 100%!important;width:100%!important;
  box-sizing:border-box!important;justify-content:space-between!important;align-items:center!important;
  margin:0!important;padding:0 8px 2px!important;gap:0!important;min-height:21px!important;
 }
 .mp-body .mp-topbar>.mp-live-date>svg{display:none!important}
 .mp-body .mp-topbar>.mp-live-date .mp-date-long{display:none!important}
 .mp-body .mp-topbar>.mp-live-date .mp-date-short{display:inline!important;margin:0!important;font-size:12px!important}
 .mp-body .mp-topbar>.mp-live-date strong{display:inline!important;margin-left:auto!important;font-size:12px!important;text-align:right!important}
}
