/* Órdenes — geometría vigente de acciones superiores. */
.priority-field[data-v03024],.priority-field[data-order-priority]{display:grid!important;grid-template-columns:1fr;justify-items:center;align-content:center;gap:4px;text-align:center;padding-block:5px!important}
.priority-field[data-v03024] input,.priority-field[data-order-priority] input{margin:0}.priority-field[data-v03024] span,.priority-field[data-order-priority] span{display:block;width:100%;text-align:center;line-height:1.1}
.app-modal:has(.order-detail-head):not(.order-actions-ready-v03025) .detail-header-right{visibility:hidden}
.detail-header-actions,.order-actions,.admin-action-row{align-items:stretch!important;gap:7px!important}
.detail-header-actions>*,.order-actions>*,.admin-action-row>*{box-sizing:border-box;min-width:max-content;min-height:40px!important;height:auto!important;border-radius:9px!important;padding:8px 11px!important;display:inline-flex!important;align-items:center;justify-content:center;text-align:center;line-height:1.15;white-space:normal;overflow:visible;overflow-wrap:normal;word-break:keep-all}
@media(max-width:760px){
  .detail-header-actions,.order-actions,.admin-action-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%}
  .detail-header-actions>*,.order-actions>*,.admin-action-row>*{min-width:0!important;width:100%;font-size:9px!important;padding-inline:6px!important;overflow-wrap:anywhere;word-break:normal}
}
.app-modal:has(.order-detail-head):not(.order-upper-final-v03026) .detail-header-right{visibility:hidden!important}
.detail-header-right .order-upper-actions-v03026,.order-upper-actions-v03026{position:static!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important;align-items:stretch!important;justify-content:stretch!important;gap:7px!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;overflow:visible!important}
.order-upper-actions-v03026>.order-upper-button-v03026{box-sizing:border-box!important;width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;max-height:42px!important;margin:0!important;padding:6px 9px!important;border-radius:9px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-size:10px!important;font-weight:800!important;line-height:1.12!important;letter-spacing:0!important;white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:normal!important}
.order-upper-payment-v03026{box-sizing:border-box!important;min-height:40px!important;border-radius:9px!important;padding:7px 11px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;line-height:1.12!important;white-space:normal!important}
.order-upper-actions-v03026>.order-upper-button-v03026[aria-busy="true"]{height:42px!important;min-height:42px!important;max-height:42px!important}
@media(max-width:760px){
  .detail-header-right .order-upper-actions-v03026,.order-upper-actions-v03026{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .order-upper-actions-v03026>.order-upper-button-v03026{height:46px!important;min-height:46px!important;max-height:46px!important;font-size:9px!important;padding:5px 6px!important}
  .order-upper-actions-v03026>.order-upper-button-v03026:last-child:nth-child(odd){grid-column:1/-1}
}
/* Resultado efectivo posterior a 0.30.27; sus clases versionadas no tenían productor activo. */
.app-modal:has(.order-detail-head):not(.order-upper-final-v03026) .detail-header-right{visibility:visible!important}
.detail-header-right{min-height:42px}
@media(max-width:760px){.detail-header-right{min-height:46px}}
/* Publicación y geometría efectiva posterior a 0.30.28, sin el skeleton ya retirado. */
.app-modal:has(.order-detail-head) .detail-header-right{min-height:42px!important}
.app-modal:has(.order-detail-head):not(.order-upper-final-v03026) .detail-header-right{visibility:visible!important}
.app-modal:has(.order-detail-head):not(.order-upper-final-v03026) .detail-header-actions{visibility:hidden!important;pointer-events:none!important}
.detail-header-right{position:relative!important}
.detail-header-actions{min-height:42px!important}
.detail-header-actions>button,.detail-header-actions>.button-link{box-sizing:border-box!important;min-width:0!important;height:42px!important;min-height:42px!important;max-height:42px!important;margin:0!important;padding:6px 9px!important;border-radius:9px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-size:10px!important;font-weight:800!important;line-height:1.12!important;white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:normal!important}
@media(max-width:760px){
  .app-modal:has(.order-detail-head) .detail-header-right,.detail-header-actions{min-height:46px!important}
  .detail-header-actions>button,.detail-header-actions>.button-link{height:46px!important;min-height:46px!important;max-height:46px!important;padding:5px 6px!important;font-size:9px!important}
}
/* Resultado efectivo de 0.30.32–0.30.34 tras aplicar la cascada final. */
@media(min-width:901px){
  .app-modal:has(.order-detail-head) .order-detail-head{position:relative!important}
  .app-modal:has(.order-detail-head) .detail-header-right{position:absolute!important;top:-5px!important;right:0!important;left:auto!important;width:min(760px,70%)!important;margin:0!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:8px!important}
}
@media(min-width:761px) and (max-width:900px){
  .app-modal:has(.order-detail-head) .order-detail-head{position:relative!important}
  .app-modal:has(.order-detail-head) .detail-header-right{position:absolute!important;top:-5px!important;right:0!important;left:auto!important;width:min(680px,68%)!important;margin:0!important}
}
@media(max-width:760px){
  .app-modal:has(.order-detail-head) .detail-header-right{position:static!important;top:auto!important;right:auto!important;left:auto!important;width:100%!important;margin:10px 0 0!important;align-items:stretch!important}
}
.app-modal:has(.order-detail-head):not(.order-upper-final-v03026) .detail-header-payment,.app-modal:has(.order-detail-head):not(.order-upper-final-v03026) .payment-control{visibility:hidden!important;pointer-events:none!important}
.app-modal.order-upper-final-v03026:has(.order-detail-head) .detail-header-payment,.app-modal.order-upper-final-v03026:has(.order-detail-head) .payment-control{visibility:visible!important;pointer-events:auto!important}
/* Prioridad y Falla conservan el orden aprobado, incluso en encabezado estable/realtime. */
.detail-header-actions>[data-priority-v03024]{order:-2!important}
.detail-header-actions>.failure-action,.detail-header-actions>[data-register-failure]{order:-1!important}
.detail-header-actions>[data-priority-v03024][aria-busy="true"]{visibility:visible!important;opacity:.72}
.app-modal .detail-header-right.stable-admin-header .detail-header-actions>[data-priority-v03024]{order:-2!important}
.app-modal .detail-header-right.stable-admin-header .detail-header-actions>.failure-action,.app-modal .detail-header-right.stable-admin-header .detail-header-actions>[data-register-failure]{order:-1!important}
