/* Compact selection toolbar replaces only the PO search area. */
body.app-ready main #purchase_orders.bcp-po-selection-ready #poBulkEmailBar{display:none!important}
body.app-ready main #purchase_orders.bcp-po-selection-active .bcp-search-toolbar>:not(.bcp-po-selection-toolbar){display:none!important}
body.app-ready main #purchase_orders.bcp-po-selection-active .erp-page-head.bcp-search-header{grid-template-columns:minmax(220px,1fr) minmax(0,760px) auto!important}
body.app-ready main #purchase_orders.bcp-po-selection-active .bcp-search-header>.bcp-search-toolbar{max-width:760px!important}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-toolbar{display:flex!important;align-items:center;justify-content:flex-start;gap:5px;flex-wrap:wrap;min-width:0;position:relative;color:#30465c;font-size:13px;line-height:20px}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-toolbar[hidden]{display:none!important}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-summary{display:flex;align-items:center;gap:5px;min-height:34px;padding:2px 5px 2px 12px;border:1px solid #176995;border-radius:3px;background:#edf6fc;color:#176995}
body.app-ready main #purchase_orders .bcp-po-selection-count{padding-right:7px;white-space:nowrap;font-size:13px}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-toolbar button{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;width:auto!important;min-width:0!important;min-height:34px!important;height:34px!important;padding:6px 10px!important;margin:0!important;border:1px solid transparent!important;border-radius:3px!important;background:#e9edf2!important;color:#30465c!important;font-size:13px!important;line-height:20px!important;font-weight:500!important;white-space:nowrap!important;box-shadow:none!important}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-toolbar button:disabled{opacity:1!important;color:#788490!important;cursor:not-allowed}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-toolbar button.bcp-po-select-all{height:28px!important;min-height:28px!important;padding:3px 7px!important;background:#176995!important;color:#fff!important}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-toolbar button.bcp-po-select-all:disabled{background:#d9e9f3!important;color:#547489!important}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-toolbar button.bcp-po-clear-selection{height:28px!important;min-height:28px!important;padding:0 4px!important;background:transparent!important;color:#176995!important;font-size:24px!important}
.bcp-po-icon{display:inline-flex;align-items:center;flex:none;width:16px;height:16px}.bcp-po-icon svg{display:block}
body.app-ready main #purchase_orders .bcp-po-actions{position:relative}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-toolbar button[aria-expanded=true]{border-color:#176995!important;background:#edf6fc!important;color:#173b5d!important}
body.app-ready main #purchase_orders .bcp-po-actions-menu{position:absolute;top:calc(100% + 5px);right:0;z-index:120;min-width:180px;padding:4px 0;background:#fff;border:1px solid #d6dfe7;border-radius:4px;box-shadow:0 8px 22px #1436531f}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-actions-menu button{display:flex!important;justify-content:flex-start!important;width:100%!important;padding:8px 14px!important;border:0!important;border-radius:0!important;background:#fff!important;text-align:left!important}
body.app-ready main #purchase_orders .bcp-search-header .bcp-po-actions-menu button:hover{background:#edf3f8!important}
body.app-ready main #purchase_orders .bcp-po-selection-toolbar [hidden]{display:none!important}
/* Export layout: independent lists, fixed header/footer, blue BuildCorePlus controls. */
body.app-ready #poExportDialog,body.app-ready #poExportDialog *{box-sizing:border-box}
body.app-ready #poExportDialog{position:fixed!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%);display:flex!important;flex-direction:column;width:calc(100% - 40px)!important;max-width:1080px!important;height:min(760px,calc(100dvh - 48px))!important;max-height:calc(100dvh - 48px)!important;margin:0!important;padding:0!important;border:1px solid #d2dee7!important;border-radius:8px!important;background:#fff!important;color:#34445a!important;box-shadow:0 18px 52px #173b5d26!important;overflow:hidden!important;z-index:100100}
body.app-ready #poExportDialog:not([open]){display:none!important}#poExportDialog::backdrop{background:#173b5d66}
body.app-ready #poExportDialog>header{display:flex!important;align-items:center;justify-content:space-between;flex:none;position:static!important;padding:15px 20px!important;border:0!important;border-bottom:1px solid #dce5ec!important;background:#f6f9fc!important;box-shadow:none!important;min-height:0!important}
body.app-ready #poExportDialog h2{font-size:18px!important;font-weight:600!important;line-height:24px!important;margin:0!important;padding:0!important;color:#173b5d!important}
body.app-ready #poExportDialog h3{font-size:15px!important;font-weight:600!important;line-height:22px!important;margin:0!important;padding:0!important;color:#253e55!important}
body.app-ready #poExportDialog button{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;width:auto!important;min-width:0!important;min-height:32px!important;height:auto!important;padding:5px 12px!important;margin:0!important;border:0!important;border-radius:3px!important;background:#edf3f8!important;color:#344e64!important;font-family:inherit!important;font-size:13px!important;line-height:20px!important;font-weight:500!important;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important}
body.app-ready #poExportDialog button:disabled{opacity:.45!important;cursor:not-allowed}
body.app-ready #poExportDialog button.bcp-po-export-close{width:28px!important;min-height:28px!important;padding:0!important;background:transparent!important;font-size:26px!important;font-weight:300!important}
body.app-ready #poExportDialog .bcp-po-export-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:18px 20px;gap:18px}
body.app-ready #poExportDialog .bcp-po-export-options,body.app-ready #poExportDialog .bcp-po-export-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;min-height:0}
body.app-ready #poExportDialog .bcp-po-export-options{flex:none;align-items:center}
body.app-ready #poExportDialog .bcp-po-export-compatible{display:flex!important;align-items:center;gap:8px;margin:0!important;font-size:13px!important;font-weight:400!important;line-height:20px!important}
body.app-ready #poExportDialog .bcp-po-export-format{display:flex;align-items:center;gap:24px;min-width:0;margin:0;padding:0;border:0;font-size:13px}
body.app-ready #poExportDialog .bcp-po-export-format legend{float:left;font-size:13px;font-weight:600;margin-right:8px;padding:0}
body.app-ready #poExportDialog .bcp-po-export-format label{display:flex!important;align-items:center;gap:6px;margin:0!important;font-weight:400!important;font-size:13px!important}
body.app-ready #poExportDialog input:is([type=radio],[type=checkbox]){appearance:auto!important;flex:none;width:16px!important;height:16px!important;min-height:16px!important;margin:0!important;padding:0!important;accent-color:#176995}
body.app-ready #poExportDialog .bcp-po-export-columns{flex:1}
body.app-ready #poExportDialog .bcp-po-export-columns>section{display:grid;grid-template-rows:auto 36px minmax(0,1fr);gap:10px;min-width:0;min-height:0;padding:0;margin:0;border:0;background:transparent}
body.app-ready #poExportDialog :is(input[type=search],select){display:block!important;width:100%!important;min-width:0!important;height:36px!important;min-height:36px!important;padding:6px 10px!important;border:1px solid #d8e1e9!important;border-radius:3px!important;background:#fff!important;color:#34445a!important;font-family:inherit!important;font-size:13px!important;line-height:22px!important;margin:0!important;box-shadow:none!important}
body.app-ready #poExportDialog .bcp-po-export-template{display:flex!important;align-items:center;gap:14px;margin:0!important;font-size:13px!important;font-weight:600!important}
body.app-ready #poExportDialog .bcp-po-export-template span{flex:none}
body.app-ready #poExportDialog .bcp-po-export-template select{flex:1;padding:0 30px 0 10px!important;line-height:normal!important;border-color:#75a9c9!important}
body.app-ready #poExportDialog>footer{width:100%!important;min-width:0!important;margin:0!important}
body.app-ready #poExportDialog .bcp-po-export-list{min-height:0;border:1px solid #d5dfe7;background:#fff;overflow:auto;overscroll-behavior:contain;padding:3px 0}
body.app-ready #poExportDialog .bcp-po-export-field{display:flex;align-items:center;gap:5px;padding:1px 10px 1px 14px;min-height:29px;font-size:13px;line-height:21px}
body.app-ready #poExportDialog .bcp-po-export-field>span:not(.bcp-po-icon){flex:1;min-width:0;overflow-wrap:anywhere}
body.app-ready #poExportDialog .bcp-po-export-field:hover{background:#f2f7fb}
body.app-ready #poExportDialog .bcp-po-export-field.is-chosen>span{font-weight:600}
body.app-ready #poExportDialog .bcp-po-export-field button{flex:none;width:24px!important;min-height:26px!important;height:26px!important;padding:0!important;background:transparent!important;color:#536b7e!important}
body.app-ready #poExportDialog .bcp-po-export-field button.bcp-po-field-add{font-size:22px!important;font-weight:650!important}
body.app-ready #poExportDialog .bcp-po-export-field button.bcp-po-field-move{cursor:grab;font-size:18px!important;width:16px!important}
body.app-ready #poExportDialog .bcp-po-export-empty{padding:10px 14px;color:#738498;font-size:13px}
body.app-ready #poExportDialog>footer{display:flex!important;align-items:center;justify-content:flex-start!important;gap:7px;flex:none;position:static!important;padding:13px 20px!important;border:0!important;border-top:1px solid #dce5ec!important;background:#fff!important;text-align:left!important}
body.app-ready #poExportDialog button.bcp-po-export-submit{background:#176995!important;color:#fff!important;font-weight:600!important}
body.app-ready #poExportDialog :is(button,input,select):focus-visible{outline:2px solid #176995!important;outline-offset:2px}
@media(max-width:1280px){body.app-ready main #purchase_orders.bcp-po-selection-active .erp-page-head.bcp-search-header{grid-template-columns:minmax(0,1fr) auto!important}body.app-ready main #purchase_orders.bcp-po-selection-active .bcp-search-header>.bcp-search-toolbar{grid-column:1/-1;grid-row:2}body.app-ready main #purchase_orders.bcp-po-selection-active .bcp-search-header>.pr-head-actions{grid-column:2;grid-row:1}}
@media(max-width:760px){
 body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-toolbar button{min-height:44px!important;height:44px!important}
 body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-summary{min-height:44px;max-width:100%;padding-left:8px}
 body.app-ready main #purchase_orders .bcp-search-header .bcp-po-selection-toolbar button:is(.bcp-po-select-all,.bcp-po-clear-selection){min-height:38px!important;height:38px!important}
 body.app-ready #poExportDialog{width:calc(100% - 20px)!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important}
 body.app-ready #poExportDialog>header,body.app-ready #poExportDialog>footer{padding:10px 12px!important}
 body.app-ready #poExportDialog .bcp-po-export-body{overflow:auto;padding:12px;gap:18px}
 body.app-ready #poExportDialog .bcp-po-export-options,body.app-ready #poExportDialog .bcp-po-export-columns{grid-template-columns:minmax(0,1fr);gap:18px;flex:none}
 body.app-ready #poExportDialog .bcp-po-export-columns>section{grid-template-rows:auto 44px minmax(180px,28dvh)}
 body.app-ready #poExportDialog .bcp-po-export-field{min-height:44px;padding:0 8px}
 body.app-ready #poExportDialog button,body.app-ready #poExportDialog .bcp-po-export-field button,body.app-ready #poExportDialog button.bcp-po-export-close{min-height:44px!important;height:44px!important;min-width:36px!important}
 body.app-ready #poExportDialog :is(input[type=search],select){height:44px!important;min-height:44px!important}
}

body.app-ready #poExportDialog .bcp-po-export-status{margin:0 0 0 10px;font-size:12px;line-height:18px;color:#506575}body.app-ready #poExportDialog .bcp-po-export-field.is-unavailable{color:#788490}
@media(max-width:760px){body.app-ready #poExportDialog>footer{flex-wrap:wrap}body.app-ready #poExportDialog .bcp-po-export-status{flex-basis:100%;margin:0}}
@media(max-width:480px){body.app-ready #poExportDialog .bcp-po-export-template{flex-direction:column;align-items:stretch;gap:4px}body.app-ready #poExportDialog .bcp-po-export-columns>section{grid-template-rows:auto auto minmax(180px,28dvh)}}
