@layer uuc-sidebar-header-priority {
.rq-recovery-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);height:auto;margin:0;padding:0;overflow:auto;border:1px solid var(--border,#d7deec);border-radius:16px;background:var(--surface,#fff);color:var(--text,#192b44);box-shadow:0 20px 70px #08152c40;font:14px/1.45 Nunito,sans-serif;box-sizing:border-box}
.rq-recovery-dialog::backdrop{background:#08152c65}
.rq-recovery-dialog__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--border,#d7deec)}
.rq-recovery-dialog h2{font:800 22px/1.2 Nunito,sans-serif;margin:0}.rq-recovery-dialog h3{font:800 15px/1.3 Nunito,sans-serif;margin:0 0 5px}.rq-recovery-dialog p{margin:0 0 8px;overflow-wrap:anywhere}.rq-recovery-dialog button{min-height:44px;font-size:13px}.rq-recovery-dialog .icon-button{height:44px;min-width:44px}.rq-recovery-dialog button svg{width:19px;height:19px}.rq-recovery-form,.rq-recovery-body{padding:18px 20px}.rq-recovery-form label{display:grid;gap:7px;font-weight:700;margin:16px 0}.rq-recovery-form textarea{box-sizing:border-box;width:100%;min-height:92px;resize:vertical;border:1px solid var(--border,#d7deec);border-radius:10px;background:var(--surface,#fff);color:inherit;padding:10px;font:inherit}.rq-recovery-form footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.rq-recovery-help,.rq-recovery-row__meta,.rq-recovery-footer{color:var(--muted,#60718b)}
.rq-recovery-list{display:grid;margin-top:16px}.rq-recovery-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--border,#d7deec)}.rq-recovery-row:first-child{padding-top:4px}.rq-recovery-row__info{min-width:0}.rq-recovery-row__meta{font-size:12px}.rq-recovery-row__reason{font-size:13px}.rq-recovery-row>.button{flex:none}.rq-recovery-empty{padding:32px 0;text-align:center}.rq-recovery-error{color:var(--danger,#bd333f);margin:12px 0}.rq-recovery-success{color:var(--success,#008867);margin:12px 0}.rq-recovery-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:16px}.rq-recovery-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;font-size:12px}
.rq-retire-draft{color:var(--danger,#bd333f)}.rq-retire-draft svg{width:18px;height:18px}.rq-recover-trigger{flex:none}.mobile-stage-menu button.rq-retire-draft[aria-label]::after{line-height:28px!important}
@media(max-width:767px){.rq-recovery-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:14px}.rq-recovery-dialog__header{padding:12px 14px}.rq-recovery-dialog h2{font-size:20px}.rq-recovery-form,.rq-recovery-body{padding:14px}.rq-recovery-form textarea{font-size:16px}.rq-recovery-row{align-items:flex-start;gap:10px}.rq-recovery-row>.button{padding-inline:10px}.rq-recovery-form footer{flex-wrap:wrap}.rq-recovery-form footer button{flex:1 1 120px}.mobile-stage-menu .rq-retire-draft>span{display:none}}
}
@layer compras-compact-capture {
@media(max-width:767px){
/* Keep the additional action visible; the original mobile sheet hides generic icon buttons. */
#root .requisition-workspace.rq-layout.rq-layout .workspace-heading-actions>.rq-recover-trigger{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
/* Search stays on its own row. The following actions retain their required DOM order. */
#root .requisition-workspace.rq-layout.rq-layout .workspace-heading:has(.rq-recover-trigger){align-items:flex-start!important}
#root .requisition-workspace.rq-layout.rq-layout .workspace-heading-actions:has(>.rq-recover-trigger){flex-wrap:wrap!important;align-items:center!important;gap:6px!important}
#root .requisition-workspace.rq-layout.rq-layout .workspace-heading-actions:has(>.rq-recover-trigger)>.rq-header-tools{flex:1 0 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;order:0!important}
/* Flatten only the document group in the existing three-dot menu. */
.mobile-stage-menu .rq-document-actions{display:contents!important}
.mobile-stage-menu .rq-document-actions>a.dossier-document-icon{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;width:100%!important;max-width:100%!important;min-height:44px!important;height:auto!important;padding:8px 10px!important;box-sizing:border-box!important;font-size:0!important;border-radius:9px!important}
.mobile-stage-menu .rq-document-actions>a.dossier-document-icon::after{content:attr(aria-label);font:700 13px/1.5 Nunito,sans-serif!important;color:inherit}
.mobile-stage-menu .rq-document-actions>button.rq-retire-draft[aria-label]::after{line-height:28px!important}
}
}
