/* CABELLO ERP — Preview integrated Email Workflow workspace
 * Keep Supabase Edge Function's existing draft / test / activation behavior.
 * Only hide original ERP content while the internal Administration view is active.
 */
html.cb-email-internal-route body #root .app-shell.treasury-layout-reference main.qb-main-panel > :not(header.qb-topbar):not(.cb-email-integrated-page){
 display:none!important;
}
body #root .app-shell.treasury-layout-reference main.qb-main-panel.cb-email-hosting{
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-auto-rows:max-content!important;
 align-content:start!important;
 gap:0!important;
}
body #root .app-shell.treasury-layout-reference main.qb-main-panel.cb-email-hosting > header.qb-topbar{
 grid-row:1!important;
 grid-column:1/-1!important;
 margin:0 0 5px!important;
 min-width:0!important;
}
body #root .app-shell.treasury-layout-reference main.qb-main-panel.cb-email-hosting > .cb-email-integrated-page{
 grid-row:2!important;
 grid-column:1/-1!important;
 min-height:0!important;
 min-width:0!important;
 width:100%!important;
 margin:0!important;
 padding:0!important;
 background:transparent!important;
}
body #root .app-shell.treasury-layout-reference .cb-email-integrated-page .cb-email-integrated-heading{
 padding:3px 2px 9px!important;
 margin:0!important;
 display:none!important;
}
body #root .app-shell.treasury-layout-reference .cb-email-integrated-page .cb-email-integrated-heading small{
 font:800 9px/1.3 "DM Sans",Arial,sans-serif!important;
 letter-spacing:.12em!important;
 text-transform:uppercase!important;
 color:#ae7f36!important;
}
body #root .app-shell.treasury-layout-reference .cb-email-integrated-page .cb-email-integrated-heading h1{
 font:800 20px/1.22 "Manrope","DM Sans",sans-serif!important;
 letter-spacing:-.025em!important;
 color:#143b32!important;
 margin:0!important;
}
body #root .app-shell.treasury-layout-reference .cb-email-integrated-page iframe.cb-email-workflow-frame{
 display:block!important;
 width:100%!important;
 min-height:800px!important;
 height:1050px;
 border:0!important;
 background:transparent!important;
 margin:0!important;
 padding:0!important;
 box-shadow:none!important;
 overflow:hidden!important;
}
body #root .app-shell.treasury-layout-reference:has(main.cb-email-hosting) .sidebar.qb-sidebar a.nav-subitem[href="/administration/configuration?view=email-workflows"]{
 color:#08745b!important;
 background:#eaf6f1!important;
 border-color:#e2f0e9!important;
 box-shadow:inset 2px 0 0 #0e9473!important;
 font-weight:750!important;
}
body #root .app-shell.treasury-layout-reference:has(main.cb-email-hosting) .sidebar.qb-sidebar a.nav-subitem[href="/administration/configuration"]{
 color:#5c716b!important;
 background:transparent!important;
 border-color:transparent!important;
 box-shadow:none!important;
 font-weight:550!important;
}
@media(max-width:899px){
 body #root .app-shell.treasury-layout-reference main.qb-main-panel.cb-email-hosting{
  display:flex!important;flex-direction:column!important;
 }
 body #root .app-shell.treasury-layout-reference main.qb-main-panel.cb-email-hosting > .cb-email-integrated-page{
  width:100%!important;
 }
}
