/* MotoPed v0.1.78 — compactação transversal, ícones e altura mínima confortável. */
.mp-body .mp-content :is(.mp-title-row,.mp-sectionhead,.mp-record-actions,.wb-order-actions,.mp-local-ordercontrols,.mp-local-ordercontrols,.wb-catalog-source,.wb-catalog-submit,.mp-local-ordercontrols) .mp-btn{min-height:36px;width:auto;max-width:100%;min-width:0;padding:6px 11px;gap:7px;font-size:12px;border-radius:10px;white-space:normal}
.mp-body .mp-content .mp-btn-icontext{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto}
.mp-body .mp-content .mp-btn-icontext .mp-icon,.mp-body .mp-content .wb-order-actions .mp-icon{width:17px;height:17px;flex:none}
.mp-body .mp-content .mp-local-ordercontrols .mp-local-icon-action{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:36px!important;width:auto!important;flex:0 0 auto!important;padding:6px 10px!important;white-space:nowrap}
.mp-local-icon-action svg{width:17px;height:17px;flex:0 0 17px}
/* Painel de rascunhos recolhível: ao abrir, todas as funções permanecem acessíveis. */
.mp-body .mp-content-orders .mp-local-orderbar{display:block;margin:5px 0 9px;padding:0 12px!important;border-radius:12px;box-shadow:var(--mp-card-shadow);background:var(--mp-raised)}
.mp-body .mp-content-orders .mp-local-orderintro{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 20px 6px 0;cursor:pointer;position:relative;list-style:none;flex-direction:row;flex-wrap:wrap}
.mp-body .mp-content-orders .mp-local-orderintro::-webkit-details-marker{display:none}
.mp-body .mp-content-orders .mp-local-orderintro::before{content:'▣';display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:var(--mp-raised-hover);color:var(--mp-accent-strong);font-size:18px}
.mp-body .mp-content-orders .mp-local-orderintro::after{content:'⌄';position:absolute;right:0;top:50%;transform:translateY(-50%);color:var(--mp-muted);font-size:18px}
.mp-body .mp-content-orders .mp-local-orderbar[open] .mp-local-orderintro::after{transform:translateY(-50%) rotate(180deg)}
.mp-body .mp-content-orders .mp-local-orderintro strong{font-size:12px;font-weight:650;color:var(--mp-strong)}
.mp-body .mp-content-orders .mp-local-orderintro small{font-size:12px;color:var(--mp-muted);line-height:1.3}
.mp-body .mp-content-orders .mp-local-ordercontrols{margin:0;display:flex;flex-wrap:wrap;gap:7px;padding:8px 0}
.mp-body .mp-content-orders .mp-local-orderstatus{margin:0 0 9px;font-size:12px;line-height:1.35}
.mp-body .mp-content-orders .mp-order-main{min-height:0!important}
.mp-body .mp-content-orders .wb-order-inline .mp-order-main>.wb-step-content{min-height:0!important}
.mp-body .mp-content-orders .wb-order-inline .wb-order-workflow>.mp-sectionhead{margin-bottom:4px}
.mp-body .mp-content-orders .wb-order-dialog .wb-order-steps{margin:6px 0 8px;gap:3px}
.mp-body .mp-content-orders .wb-order-step{min-height:51px!important;padding:4px 2px!important;gap:4px;font-size:12px;white-space:normal}
.mp-body .mp-content-orders .wb-order-step .mp-icon{width:19px;height:19px;padding:4px;border-radius:50%}
.mp-body .mp-content-orders .wb-step-content h3{font-size:14px;margin:0 0 9px}
.mp-body .mp-content-orders .wb-order-fields{gap:9px}
.mp-body .mp-content-orders .wb-order-fields label{gap:5px}
.mp-body .mp-content-orders .wb-order-fields :is(input,select,textarea),.mp-body .mp-content-orders .wb-order-product-search input{min-height:39px;padding:8px 10px;font-size:12px;border-radius:9px}
.mp-body .mp-content-orders .wb-order-inline .wb-order-actions{margin-top:10px;padding-top:9px;gap:6px}
.mp-body .mp-content-orders .wb-order-inline .wb-order-actions .mp-btn{min-height:36px!important;padding:6px 10px!important;flex:0 0 auto!important;white-space:nowrap}
.mp-body .mp-content-orders .wb-order-close{min-height:34px!important;padding:5px 9px!important;gap:5px}
.mp-body .mp-content-orders .wb-order-close>span{font-size:12px}
.mp-body .mp-content-orders .mp-order-help{display:none}
/* Pedidos e acervo legado com 3 linhas por página e controles reduzidos. */
.mp-body .mp-content-orders :is(.wb-orders-current,.wb-history-list) .mp-sectionhead{align-items:center;gap:8px;margin-bottom:9px}
.mp-body .mp-content-orders :is(.wb-orders-current,.wb-history-list){padding:13px!important}
.mp-body .mp-content-orders :is(.wb-orders-current,.wb-history-list) .mp-table{font-size:12px}
.mp-body .mp-content-orders :is(.wb-orders-current,.wb-history-list) .mp-table :is(th,td){padding:8px 9px}
.mp-body .mp-content-orders .mp-pages{margin-top:8px;gap:6px}
.mp-body .mp-content-orders .mp-page-btn{min-width:30px;min-height:30px;padding:5px 7px;font-size:12px}
.mp-body .mp-content-orders .mp-local-ordercontrols{gap:6px}
/* Pesquisa: UMA lupa clicável, dentro do campo (Representadas e Histórico). */
.mp-body .mp-content-companies .mp-company-filter{grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important}
.mp-body .mp-content-companies .mp-company-filter .mp-company-search-field{position:relative;display:flex;align-items:center;padding:0 43px 0 10px;min-height:40px}
.mp-body .mp-content-companies .mp-company-filter .mp-company-search-field input{min-height:39px!important;width:100%!important}
.mp-body .mp-content-companies .mp-company-filter .mp-company-search-submit{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:36px;height:36px;min-height:36px;border-radius:9px;background:transparent;box-shadow:none;color:var(--mp-accent-strong)}
.mp-body .mp-content-companies .mp-company-filter .mp-company-search-submit:hover{background:var(--mp-raised-hover)}
.mp-body .mp-content-companies .mp-company-filter .mp-company-clear{min-width:34px;height:36px}
.mp-body .mp-content-orders .mp-record-search:has(.mp-search-icon-button){position:relative;display:flex;align-items:center;gap:6px;min-width:0;max-width:100%}
.mp-body .mp-content-orders .mp-record-search:has(.mp-search-icon-button)>input:not([type=hidden]){min-width:0;flex:1 1 auto;padding-right:45px!important;min-height:39px}
.mp-body .mp-content-orders .mp-record-search .mp-search-icon-button{display:grid;place-items:center;flex:0 0 36px;margin-left:-44px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:9px;color:var(--mp-accent-strong);background:transparent;box-shadow:none;z-index:1}
.mp-body .mp-content-orders .mp-record-search .mp-search-icon-button:hover{background:var(--mp-raised-hover)}
.mp-body .mp-content-products .mp-products-query-field>label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)}
/* Indicadores e cartões: menor altura, sem sacrificar texto essencial. */
.mp-body .mp-content .mp-title-row{margin-bottom:10px}
.mp-body .mp-content .mp-title-row h1{font-size:clamp(20px,1.7vw,26px)}
.mp-body .mp-content :is(.mp-company-mini,.mp-product-choice,.mp-record-card){min-height:0}
.mp-body .mp-content :is(.mp-company-grid,.mp-record-grid){gap:9px}
.mp-home-recent-pages{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:7px;color:var(--mp-muted);font-size:12px}
.mp-home-recent-pages a{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--mp-surface);color:var(--mp-accent-strong);font-size:19px;font-weight:600;text-decoration:none}
.mp-home-recent-pages a:hover{background:var(--mp-raised-hover)}
@media(max-width:760px){
 .mp-body .mp-content-orders .mp-local-orderintro small{display:none}
 .mp-body .mp-content-orders .mp-local-ordercontrols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .mp-body .mp-content-orders .mp-local-ordercontrols button{min-width:0!important;padding:6px 4px!important;white-space:normal;font-size:12px!important;flex:1 1 auto!important}
 .mp-body .mp-content-orders .wb-order-inline .wb-order-actions{justify-content:flex-end;flex-wrap:wrap}
 .mp-body .mp-content-orders .wb-order-inline .wb-order-actions .mp-btn{font-size:12px!important;min-height:36px!important;padding:7px 9px!important}
 .mp-body .mp-content-orders .mp-sectionhead .mp-local-ordercontrols{gap:6px;flex-wrap:wrap}
 .mp-body .mp-content-orders .wb-order-step{font-size:12px;min-height:52px!important}
}
@media(max-width:390px){
 .mp-body .mp-content-orders .mp-local-ordercontrols button{font-size:12px!important;gap:3px}
 .mp-body .mp-content-orders .mp-local-ordercontrols button svg{width:15px;height:15px;flex-basis:15px}
 .mp-body .mp-content-orders .mp-local-orderintro strong{font-size:12px}
 .mp-body .mp-content-orders .wb-order-inline .wb-order-actions .mp-btn{font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){.mp-body .mp-content-orders .mp-local-orderintro::after{transition:none}}


/* MotoPed v0.1.80 — timeline centralizada e Pedidos visualmente compacta. */
.mp-body .mp-content-orders .wb-order-dialog .wb-order-steps{gap:8px;margin:6px 0 10px}
.mp-body .mp-content-orders .wb-order-step{min-height:60px!important;padding:2px 2px 0!important;gap:4px;font-size:12px;white-space:normal}
.mp-body .mp-content-orders .wb-order-step .mp-icon{width:18px;height:18px;padding:4px}
.mp-body .mp-content-orders .wb-order-step::after,.mp-body .mp-content-orders .wb-order-step::before{top:13px;left:calc(50% + 13px);width:calc(100% - 26px)}
.mp-body .mp-content-orders .wb-orders-current .mp-sectionhead{justify-content:space-between}
.mp-body .mp-content-orders .wb-orders-current .mp-sectionhead .mp-local-ordercontrols{gap:5px}
.mp-body .mp-content-orders .wb-orders-current .mp-sectionhead .mp-local-ordercontrols .mp-btn{min-height:34px;padding:5px 10px;font-size:12px;border-radius:10px}
.mp-body .mp-content-orders .wb-orders-current .mp-table :is(th,td),.mp-body .mp-content-orders .wb-history-list .mp-table :is(th,td){padding:7px 8px;font-size:12px}
.mp-body .mp-content-orders .wb-history-list .mp-record-search{position:relative;display:flex;align-items:center;gap:6px;max-width:460px;margin-bottom:10px}
.mp-body .mp-content-orders .wb-history-list .mp-record-search > input[name="order_q"]{flex:1 1 auto;min-width:0;min-height:38px;padding:8px 44px 8px 12px;border-radius:11px}
.mp-body .mp-content-orders .wb-history-list .mp-record-search .mp-search-icon-button{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border-radius:9px;background:transparent;box-shadow:none;color:var(--mp-accent-strong)}
.mp-body .mp-content-orders .wb-history-list .mp-record-search .mp-search-icon-button:hover{background:var(--mp-raised-hover)}
.mp-body .mp-content-orders .wb-history-list .mp-record-search .mp-secondary{min-height:34px;padding:5px 10px;font-size:12px}
.mp-body .mp-content-orders .mp-pages{margin-top:8px;gap:6px}
.mp-body .mp-content-orders .mp-page-btn{min-width:28px;min-height:28px;padding:4px 6px;font-size:12px}
@media(max-width:760px){
 .mp-body .mp-content-orders .wb-order-step{font-size:12px;min-height:56px!important}
 .mp-body .mp-content-orders .wb-order-step::after,.mp-body .mp-content-orders .wb-order-step::before{top:13px;left:calc(50% + 13px);width:calc(100% - 26px)}
 .mp-body .mp-content-orders .wb-order-step:nth-child(3n)::after,.mp-body .mp-content-orders .wb-order-step:nth-child(3n)::before{display:none}
 .mp-body .mp-content-orders .wb-history-list .mp-record-search{max-width:100%}
 .mp-body .mp-content-orders .wb-orders-current .mp-sectionhead .mp-local-ordercontrols .mp-btn span{display:none}
 .mp-body .mp-content-orders .wb-orders-current .mp-sectionhead .mp-local-ordercontrols .mp-btn{min-width:34px;padding:5px 8px}
}

/* MotoPed v0.1.83 — cards mobile mais compactos, principalmente em Pedidos. */
@media(max-width:760px){
 .mp-body .mp-content-orders :is(.wb-orders-current,.wb-history-list){padding:10px!important}
 .mp-body :is(.mp-products-table tbody,.wb-orders-current .mp-table tbody,.wb-history-orders tbody,.wb-history-items-table tbody,.wb-doc-table tbody,.wb-catalog-history-table tbody){gap:7px}
 .mp-body :is(.mp-products-table tbody tr,.wb-orders-current .mp-table tbody tr,.wb-history-orders tbody tr,.wb-history-items-table tbody tr,.wb-doc-table tbody tr,.wb-catalog-history-table tbody tr){padding:9px!important;gap:6px!important;border-radius:12px}
 .mp-body :is(.mp-products-table tbody td,.wb-orders-current .mp-table tbody td,.wb-history-orders tbody td,.wb-history-items-table tbody td,.wb-doc-table tbody td,.wb-catalog-history-table tbody td){gap:2px;font-size:12.5px;line-height:1.32}
 .mp-body :is(.mp-products-table tbody td:before,.wb-orders-current .mp-table tbody td:before,.wb-history-orders tbody td:before,.wb-history-items-table tbody td:before,.wb-doc-table tbody td:before,.wb-catalog-history-table tbody td:before){font-size:12px;line-height:1.2}

 .mp-body .mp-content-orders .wb-orders-current .mp-table tbody tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(1){grid-column:1/2}
 .mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(2){grid-column:2/3;align-items:flex-end;text-align:right}
 .mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(3),
 .mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(4){grid-column:1/-1}
 .mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(5){grid-column:1/2}
 .mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(6){grid-column:2/3;align-items:flex-end;text-align:right}
 .mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(7){order:-1;grid-column:1/-1;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:6px;margin-bottom:-1px}
 .mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(7)::before{content:none}
 .mp-body .mp-content-orders .wb-orders-current .wb-order-list-actions{width:100%;justify-content:flex-end;gap:6px;flex-wrap:nowrap}
 .mp-body .mp-content-orders .wb-orders-current .wb-order-list-actions .wb-icon-action,
 .mp-body .mp-content-orders .wb-orders-current .wb-order-list-actions .mp-trash-btn{width:34px;min-width:34px;height:34px;min-height:34px;border-radius:10px;padding:0}
 .mp-body .mp-content-orders .wb-orders-current .mp-order-code-cell .mp-with-3d-icon-icon,
 .mp-body .mp-content-orders .wb-orders-current .mp-order-code-cell img{width:18px;height:18px;min-width:18px}
 .mp-body .mp-content-orders .wb-orders-current .mp-order-code-cell strong{font-size:12px}
 .mp-body .mp-content-orders .wb-orders-current .wb-order-created-at{font-size:12px}
 .mp-body .mp-content-orders .mp-sectionhead .mp-hint{font-size:12px}

 .mp-body .mp-content-orders .wb-history-orders td:nth-child(7),
 .mp-body .wb-doc-table td:nth-child(4){order:-1;justify-content:flex-end}
 .mp-body .mp-content-orders .wb-history-orders td:nth-child(7)::before,
 .mp-body .wb-doc-table td:nth-child(4)::before{content:none}
 .mp-body .wb-doc-table .wb-record-actions,
 .mp-body .mp-content-orders .wb-history-orders td:nth-child(7){width:100%}
}

@media(max-width:420px){
 .mp-body .mp-content-orders .wb-orders-current .mp-table tbody tr{padding:8px!important;gap:5px!important}
 .mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(3),
 .mp-body .mp-content-orders .wb-orders-current .mp-table td:nth-child(4){font-size:12px}
 .mp-body .mp-content-orders .wb-orders-current .wb-order-list-actions .wb-icon-action,
 .mp-body .mp-content-orders .wb-orders-current .wb-order-list-actions .mp-trash-btn{width:32px;min-width:32px;height:32px;min-height:32px}
}
