/* Remove floating AI obstruction without removing its node or backend integrations. */
#apr-ai-launcher,.apr-ai-launcher{display:none!important;pointer-events:none!important}
.apr-mobile-options-toggle{display:none}
@media screen and (max-width:760px){
 body.apr-mobile-admin :is(.apr-invoice-author,.apr-authoroptions,.apr-smartside,.apr-richtoolbar) :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=hidden]){font-size:16px!important;min-height:46px!important;line-height:1.5!important;padding:11px!important}
 body.apr-mobile-admin :is(.apr-invoice-author,.apr-authoroptions,.apr-smartside) label{font-size:14px!important;line-height:1.5!important}
 body.apr-mobile-admin .apr-invoice-author{padding:16px 12px!important;border-radius:10px}
 body.apr-mobile-admin .apr-inv-editrow{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px 0}
 body.apr-mobile-admin .apr-inv-editservice{grid-column:1/-1;min-width:0}
 body.apr-mobile-admin .apr-inv-editservice textarea{min-height:105px!important}
 body.apr-mobile-admin .apr-inv-editrow>label>span{position:static;display:block;clip:auto;width:auto;height:auto;overflow:visible;font-size:13px;margin-bottom:7px;color:#526680}
 body.apr-mobile-admin .apr-inv-remove{grid-column:1/-1;width:100%!important;min-height:44px!important;border:1px solid #e3cfd0!important;border-radius:8px;background:#fff!important;color:#8c3d45}
 body.apr-mobile-admin .apr-inv-remove::after{content:' Quitar partida';font:500 13px/1.4 Arial,sans-serif}
 body.apr-mobile-admin .apr-inv-add{flex-direction:column;align-items:stretch;gap:12px}
 body.apr-mobile-admin .apr-inv-add :is(button,select){width:100%;max-width:none!important;min-height:46px;font-size:15px}
 body.apr-mobile-admin :is(.apr-inv-summary,.apr-inv-meta,.apr-inv-metagrid){grid-template-columns:minmax(0,1fr);gap:18px}
 body.apr-mobile-admin .apr-invoice-author .apr-inv-adjust{flex-wrap:wrap!important;gap:10px!important}
 body.apr-mobile-admin .apr-invoice-author .apr-inv-adjust>span{flex:1 0 100%;font-size:14px}
 body.apr-mobile-admin .apr-invoice-author .apr-inv-adjust>input{flex:1;width:120px!important}
 body.apr-mobile-admin .apr-invoice-author .apr-inv-adjust>select{width:100px!important}
 body.apr-mobile-admin .apr-authorlayout{display:flex;flex-direction:column;min-width:0}
 body.apr-mobile-admin .apr-authoroptions{max-height:none;overflow:visible;border:1px solid #dce3ed;border-radius:10px;padding:16px;order:-1}
 body.apr-mobile-admin .apr-authorcanvas{order:0;min-width:0}
 body.apr-mobile-admin .apr-mobile-options-toggle{display:flex;order:-2;align-items:center;justify-content:space-between;width:100%;min-height:48px;margin:0 0 12px;padding:12px 16px;border:1px solid #cbd6e7;border-radius:10px;background:#f7f9fd;color:#173153;font-size:15px;font-weight:600;text-align:left}
 body.apr-mobile-admin .apr-mobile-options-toggle::after{content:'+';font-size:23px}
 body.apr-mobile-admin .apr-mobile-options-toggle[aria-expanded=true]::after{content:'−'}
 body.apr-mobile-admin .apr-mobile-options-collapsed{display:none!important}
 body.apr-mobile-admin .apr-richtoolbar{flex-wrap:nowrap;overflow-x:auto;gap:8px;position:static;padding:10px 0;overscroll-behavior-x:contain}
 body.apr-mobile-admin .apr-richtoolbar button{flex:0 0 auto;min-width:44px;min-height:44px;font-size:14px}
 body.apr-mobile-admin .apr-richtoolbar select{flex:0 0 auto;max-width:150px}
 body.apr-mobile-admin :is(.apr-richinput,.apr-richpreview){min-height:320px;max-height:none;overflow:visible;padding:18px 12px;font-size:16px;line-height:1.8}
 body.apr-mobile-admin .apr-smartstudio{height:100dvh;overflow-y:auto;overflow-x:hidden;display:block;overscroll-behavior:contain}
 body.apr-mobile-admin .apr-smartbody{display:flex;flex-direction:column;min-height:0}
 body.apr-mobile-admin .apr-smartside{order:-1;display:block;width:100%;max-height:none;overflow:visible;padding:16px;border:1px solid #dce3ed;background:#f8faff}
 body.apr-mobile-admin .apr-smartside :is(.apr-sidehead,.apr-pagenamelabel,.apr-sidehint){display:block}
 body.apr-mobile-admin .apr-smartcanvas{order:0;overflow:visible;min-width:0;padding:10px 8px 36px}
 body.apr-mobile-admin .apr-smartpaper{width:100%;min-width:0;max-width:100%}
 body.apr-mobile-admin .apr-smartpaper:has(.apr-invoice-author){padding:0!important}
 body.apr-mobile-admin .apr-smartblock:has(.apr-invoice-author){padding:8px!important}
 body.apr-mobile-admin .apr-smarttop{position:sticky;top:0;z-index:30;background:#fff;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid #dce3ed}
 body.apr-mobile-admin .apr-smartname{flex:1;min-width:0}
 body.apr-mobile-admin .apr-smartname input{font-size:16px;min-height:44px;max-width:100%}
 body.apr-mobile-admin .apr-smarttools{width:100%;justify-content:flex-start;gap:8px}
 body.apr-mobile-admin .apr-smarttools .hb-btn{min-height:44px;font-size:14px}
 body.apr-mobile-admin .hb-dialog.wide .hb-templatebuilder:has(:is(.apr-invoice-author,.apr-contractauthor)){display:flex;flex-direction:column;min-width:0}
 body.apr-mobile-admin .hb-dialog.wide .hb-templatebuilder>.hb-builderbody:has(:is(.apr-invoice-author,.apr-contractauthor)){width:100%;margin:12px 0 24px;padding:10px;min-width:0}
}
@media print{.apr-mobile-options-toggle{display:none!important}}
