/* Temporary client demo control; existing page structure and spacing are retained. */
.bcp-demo-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:5px 9px;border:1px solid #bfd5e8;border-radius:7px;background:#f5faff;color:#195b88;font:600 12px/1.3 Inter,'Segoe UI',sans-serif;white-space:nowrap;cursor:pointer;flex:0 0 auto}
.bcp-demo-button:hover{background:#e7f2fc}.bcp-demo-button:focus-visible{outline:2px solid #1978bf;outline-offset:2px}.bcp-demo-button.is-active{background:#fff7e5;color:#805100;border-color:#ecd295}.bcp-demo-button[hidden]{display:none!important}
#bcpClientDemoFrame{position:fixed;inset:0;width:100%;height:100%;border:0;background:#f4f8fc;z-index:2147483000}
#bcpClientDemoLoading{position:fixed;inset:0;background:#f4f8fc;z-index:2147483001;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#173b5d;font:15px/1.5 Inter,'Segoe UI',sans-serif}
@media(max-width:650px){.bcp-demo-button{font-size:11px;min-height:30px;padding:5px 7px}.bcp-demo-control{gap:3px}}
@media print{body.bcp-client-demonstration::before{content:'DEMONSTRATION — COMPANY RECORDS WITH TEMPORARY DEMO TRANSACTIONS';display:block!important;font:700 14px sans-serif;color:#805100;padding:10px;border:2px solid #805100}.bcp-demo-control{display:none!important}}

/* Keep the company action pair aligned beneath Open workspace. */
#platformOverview .sa-row-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;width:168px;max-width:100%;margin-left:auto}
#platformOverview .sa-manage-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;min-width:0;white-space:nowrap}
/* Override the shared record-table wrapping and margins for these short actions. */
#platformOverview #bcpPlatformCompanyCard .sa-row-actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box!important;
  width:100%;
  min-width:0;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  padding:7px 8px!important;
  line-height:20px!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
}
#platformOverview #bcpPlatformCompanyCard .sa-manage-actions>button{font-size:12px!important}

/* The launcher scrolls inside a flex column. Keep the demo banner at its
   content height, with controls separate from the wrapping status text. */
body.bcp-client-demonstration #saWorkspaceBar{
  flex:0 0 auto!important;height:auto!important;min-height:auto!important;
  box-sizing:border-box;max-width:100%;align-items:center;flex-wrap:wrap;
}
body.bcp-client-demonstration #saWorkspaceBar .bcp-demo-workspace-copy{
  display:flex;flex-direction:column;gap:4px;flex:1 1 400px;min-width:0;max-width:100%;
}
body.bcp-client-demonstration #saWorkspaceBar #saWorkspaceMode{
  display:block;margin:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5;
}
body.bcp-client-demonstration #saWorkspaceBar .bcp-demo-workspace-actions{
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;
  flex:0 1 auto;gap:8px;min-width:0;max-width:100%;margin-left:auto;
}
body.bcp-client-demonstration #saWorkspaceBar .bcp-demo-workspace-actions :is(#saBack,#bcpDemoExitSession){
  flex:0 0 auto;height:auto!important;min-height:36px!important;max-width:100%;
  margin:0!important;padding:7px 10px!important;font-size:12px!important;
  line-height:20px!important;white-space:normal!important;overflow-wrap:anywhere;
}
@media(max-width:650px){
  body.bcp-client-demonstration #saWorkspaceBar .bcp-demo-workspace-actions{justify-content:flex-start;margin-left:0;width:100%}
  body.bcp-client-demonstration #saWorkspaceBar .bcp-demo-workspace-actions :is(#saBack,#bcpDemoExitSession){min-height:44px!important}
}
