/* One visual contract for return navigation across the ERP. */
body .app-shell .page-header .header-actions:has(> :is(.erp-action-primary, .dxbl-btn-primary):only-child) {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
}
body .app-shell .page-header .header-actions > :is(.erp-action-primary, .dxbl-btn-primary):only-child {
    width: 144px !important;
    max-width: 100%;
    margin-left: auto;
}
body .app-shell .header-actions.erp-single-create-actions {
    display: flex !important;
    justify-content: flex-end !important;
    flex-direction: row !important;
}
body .app-shell .header-actions.erp-single-create-actions > button {
    width: 144px !important;
    max-width: 100%;
    margin-left: auto;
}
body .app-shell .header-actions:has(.erp-back-button) {
    display: flex !important;
    justify-content: flex-end !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
body .app-shell .header-actions > :is(.erp-action-button, .erp-ribbon-button).erp-back-button {
    width: 144px !important;
    max-width: 100%;
    flex: 0 1 144px;
    margin-right: auto;
}
body .app-shell .header-actions:has(.erp-back-button) > :is(.erp-action-button, .erp-ribbon-button) {
    width: 144px !important;
    max-width: 100%;
    flex: 0 1 144px;
}
body :is(.app-shell, .erp-popup) :is(button, a).erp-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 144px !important;
    max-width: 100%;
    height: auto !important;
    min-height: 44px !important;
    gap: 7px;
    padding: 10px 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
    background: #fff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    text-decoration: none;
}
body :is(.app-shell, .erp-popup) .erp-back-button:focus-visible {
    outline: 3px solid #1764a5;
    outline-offset: 3px;
}
