#adhaV151Commerce{margin:16px 0!important;border:1px solid #c6daf0!important;background:linear-gradient(150deg,#f3f9ff,#fff)!important;border-radius:16px!important;color:#14324c!important}
#adhaV151Commerce h3{margin:0 0 5px;font-size:21px;color:#133f61}
#adhaV151Commerce p{line-height:1.5;color:#466078}
#adhaV151Commerce [hidden],#adhaV151Commerce [hidden] *{display:none!important}
.adhaV151Grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.adhaV151Plan{padding:14px;border:1px solid #bfd1e3;border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:5px;min-width:0}
.adhaV151Plan strong{font-size:22px;color:#075aaa}
.adhaV151Plan small{font-size:12px;color:#a65c15}
.adhaV151Plan span{font-size:12px;color:#516579}
.adhaV151OperatorRow{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:13px;border-bottom:1px solid #d2dce8;background:#fff}
.adhaV151OperatorRow button{flex-shrink:0}
#adhaV151OperatorForm{border:1px solid #b3c9df;border-radius:12px;padding:14px;background:#fff;margin-top:15px}
#adhaV151OperatorForm label{font-size:13px;display:block;margin-bottom:9px;color:#173f5f}
#adhaV151OperatorForm input{display:block;width:100%;margin-top:4px;color:#14324c;background:#fff}
#adhaV151OperatorResult{margin:12px 0;padding:14px;background:#e5f5ed;border:1px solid #7fbba0;border-radius:10px;overflow-wrap:anywhere}
body.adha-comercial-only nav.adminNav button:not(#navPanelADHA),body.adha-comercial-only #adhaDrawerOpen,body.adha-comercial-only #navPersonalADHA,body.adha-comercial-only #adhaAccountMenu button[onclick*="irConfiguracionADHA"]{display:none!important}
body.adha-comercial-only nav.adminNav #navPanelADHA{display:inline-flex!important}
body.adha-comercial-only .page:not(#panelADHA){display:none!important}
body.adha-comercial-only #adhaV151OwnerSupport{display:none!important}
@media(max-width:660px){.adhaV151Grid{grid-template-columns:minmax(0,1fr)}.adhaV151OperatorRow{align-items:flex-start;flex-wrap:wrap}}

/* V158.0.1 · Ajustes de controles y panel comercial móvil. */
#adhaV151Commerce,#adhaV151PartnerSection,#adhaV151OperatorForm,#adhaV151OperatorResult{box-sizing:border-box;min-width:0;max-width:100%}
#adhaV151OperatorForm .adhaV151Grid>*{min-width:0;max-width:100%}
#adhaV151OperatorForm label,#adhaV151OperatorForm input{min-width:0;max-width:100%;overflow-wrap:anywhere}
#adhaV151OperatorForm input{font-size:16px;min-height:44px}
#adhaV151OperatorForm input[type=password]{flex:1 1 0;min-width:0;width:0}
#adhaV151OperatorForm label button{flex:0 0 46px;min-width:46px;min-height:44px;padding:6px}
#adhaV151CreateOperator{width:100%;min-height:48px;white-space:normal}
#adhaV151FormStatus{max-width:100%;overflow-wrap:anywhere;padding:8px 0}
#adhaV151Commerce button{white-space:normal;overflow-wrap:anywhere}
@media(max-width:660px){
 #panelADHA{width:100%;min-width:0;max-width:100%;padding:0;overflow-x:clip}
 #panelADHA>.card,#adhaV151Commerce{width:100%;max-width:100%;min-width:0;padding:12px!important;margin:10px 0!important}
 #adhaV151PartnerSection>button{width:100%;max-width:100%;margin:5px 0;min-height:44px}
 #adhaV151Commerce h3{font-size:19px}
 #adhaV151OperatorForm{padding:12px!important;overflow:hidden}
 #adhaV151OperatorForm label{margin-bottom:10px}
 #adhaV151OperatorResult{padding:12px}
 #adhaV151Operators .adhaV151OperatorRow{padding:12px}
 #adhaV151Operators .adhaV151OperatorRow button{width:100%;min-height:44px}
 #adhaV151ShareOverlay{padding:10px!important;align-items:flex-start!important}
 #adhaV151ShareOverlay>section{width:100%!important;max-width:100%!important;padding:14px!important;margin:10px auto!important}
 #adhaV151ShareOverlay input,#adhaV151ShareOverlay textarea{width:100%!important;max-width:100%!important;min-width:0!important;font-size:14px!important}
 #adhaV151ShareOverlay button{flex:1 1 145px;min-height:44px}
}
@media(max-width:380px){#adhaV151Commerce h3{font-size:18px}#adhaV151ShareOverlay button{flex-basis:100%}}

/* V158.0.3 · Compartir accesos de directores en escritorio y móvil */
.adhaV151OperatorActions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;min-width:0}
.adhaV151OperatorRow>div:first-child{min-width:0;overflow-wrap:anywhere;flex:1}
.adhaV151OperatorActions button{min-height:42px;padding:9px 12px}
.adhaV151QuickLinks{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}
.adhaV151QuickLinks button{min-height:44px;padding:10px 14px;color:#fff;background:#116c9f;border-radius:10px}
#adhaV151DirectorShareDialog[hidden],#adhaV151SwitchAccount[hidden]{display:none!important}
#adhaV151DirectorShareDialog,#adhaV151SwitchAccount{position:fixed;inset:0;z-index:2147483645;background:rgba(6,16,34,.78);padding:16px;overflow:auto;display:flex;align-items:center;justify-content:center}
#adhaV151DirectorShareDialog .adhaV151ShareCard,#adhaV151SwitchAccount section{box-sizing:border-box;max-width:560px;width:100%;max-height:calc(100dvh - 32px);overflow:auto;background:#f8fafc;color:#163047;border-radius:18px;padding:22px;box-shadow:0 20px 55px #0006}
#adhaV151DirectorShareDialog header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
#adhaV151DirectorShareDialog header h3{margin:0 0 4px;color:#123c60}
#adhaV151DirectorShareDialog header p{margin:0 0 12px;font-size:13px;overflow-wrap:anywhere}
#adhaV151ShareCloseDirector{background:#e6edf5;color:#163047;min-width:42px;min-height:42px;padding:5px;font-size:26px}
#adhaV151DirectorShareDialog label{display:block;font-weight:700;font-size:13px;margin:12px 0 4px}
#adhaV151DirectorShareDialog input,#adhaV151DirectorShareDialog textarea{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;background:white;color:#123a55;border:1px solid #9eb7cf;border-radius:9px;padding:12px;font:14px/1.45 system-ui;overflow-wrap:anywhere;margin-top:5px}
#adhaV151DirectorShareDialog input{min-height:44px}
#adhaV151DirectorShareDialog textarea{resize:vertical;min-height:155px}
.adhaV151ShareActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}
.adhaV151ShareActions button,.adhaV151RecoveryArea button{min-height:46px;padding:9px;border-radius:10px;white-space:normal}
.adhaV151RecoveryArea{border-top:1px solid #cedae5;padding:12px 0}
.adhaV151RecoveryArea[hidden]{display:none!important}
.adhaV151RecoveryArea p{font-size:13px;margin:4px 0 9px;line-height:1.5}
.adhaV151RecoveryArea small{display:block;margin-top:8px;overflow-wrap:anywhere}
#adhaV151DirectorShareStatus{font-size:13px;line-height:1.5;overflow-wrap:anywhere;min-height:18px}
#adhaV151SwitchAccount section h2{margin:0 0 8px}
#adhaV151SwitchAccount section p{line-height:1.5}
#adhaV151SwitchAccount section>div{display:flex;gap:8px;flex-wrap:wrap}
#adhaV151SwitchAccount button{min-height:44px;flex:1 1 170px}
#adhaV151SwitchError{color:#b91c1c}
@media(max-width:660px){
 .adhaV151OperatorActions{width:100%;justify-content:stretch}
 .adhaV151OperatorActions button{flex:1 1 140px;white-space:normal}
 .adhaV151QuickLinks button{width:100%}
 #adhaV151DirectorShareDialog,#adhaV151SwitchAccount{align-items:flex-start;padding:10px}
 #adhaV151DirectorShareDialog .adhaV151ShareCard,#adhaV151SwitchAccount section{max-height:none;margin:7px 0;padding:15px;border-radius:14px}
 .adhaV151ShareActions{grid-template-columns:minmax(0,1fr)}
}

/* V158.0.4 · ADHA identity: navy #0B2D5B, electric blue #008DFF, white.
   Scope all rules to the director dialog so global header/heading and dark-theme rules cannot invert contrast. */
#adhaV151DirectorShareDialog .adhaV151ShareCard{background:#f8fafc!important;color:#14324c!important;border:1px solid #c8d8e9!important}
#adhaV151DirectorShareDialog .adhaV151ShareCard>header{
  position:relative!important;inset:auto!important;z-index:auto!important;
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:12px!important;background:#0B2D5B!important;color:#fff!important;
  border:0!important;border-radius:12px!important;padding:15px 16px!important;
  margin:0 0 16px!important;box-shadow:none!important;backdrop-filter:none!important;
}
#adhaV151DirectorShareDialog .adhaV151ShareCard>header h3{
  color:#fff!important;font-size:clamp(18px,3vw,22px)!important;font-weight:850!important;
  line-height:1.23!important;letter-spacing:-.01em!important;margin:0 0 6px!important;
}
#adhaV151DirectorShareDialog .adhaV151ShareCard>header p{
  color:#dbeaff!important;font-size:13px!important;line-height:1.45!important;
  margin:0!important;overflow-wrap:anywhere!important;
}
#adhaV151DirectorShareDialog .adhaV151ShareCard label{color:#163652!important;font-weight:750!important}
#adhaV151DirectorShareDialog .adhaV151ShareCard input,
#adhaV151DirectorShareDialog .adhaV151ShareCard textarea{
  background:#fff!important;color:#173451!important;border:1px solid #9cb5cf!important;
  -webkit-text-fill-color:#173451!important;opacity:1!important;
}
#adhaV151DirectorShareDialog #adhaV151ShareCloseDirector{
  flex:0 0 42px!important;max-width:42px!important;background:#e9f3ff!important;
  color:#123c65!important;border:1px solid #aecded!important;box-shadow:none!important;
}
#adhaV151DirectorShareDialog .adhaV151ShareActions{align-items:stretch}
#adhaV151DirectorShareDialog .adhaV151ShareActions button,
#adhaV151DirectorShareDialog .adhaV151ShareActions a{
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;width:100%!important;min-width:0!important;
  border-radius:10px!important;border:1px solid #c4d6e9!important;
  background:#e9f3ff!important;color:#143b60!important;text-decoration:none!important;
  font-size:14px!important;font-weight:800!important;line-height:1.3!important;
  min-height:48px!important;padding:10px 12px!important;cursor:pointer!important;
  overflow-wrap:anywhere!important;
}
#adhaV151DirectorShareDialog #adhaV151ShareCopyMessage{background:#147bd1!important;color:#fff!important;border-color:#147bd1!important}
#adhaV151DirectorShareDialog #adhaV151ShareWhatsapp{background:#12653d!important;color:#fff!important;border-color:#12653d!important}
#adhaV151DirectorShareDialog .adhaV151ShareActions button:focus-visible,
#adhaV151DirectorShareDialog .adhaV151ShareActions a:focus-visible{outline:3px solid #f8a12c!important;outline-offset:2px!important}
#adhaV151DirectorShareDialog #adhaV151DirectorRecovery{color:#38526b!important}
#adhaV151DirectorShareDialog #adhaV151DirectorRecovery p,
#adhaV151DirectorShareDialog #adhaV151DirectorEmail{color:#38526b!important}
#adhaV151DirectorShareDialog #adhaV151SendRecovery{background:#e9f3ff!important;color:#164773!important;border:1px solid #a9cdec!important}
#adhaV151DirectorShareDialog #adhaV151DirectorShareStatus{color:#176b4b!important;font-weight:650!important}
#adhaV151DirectorShareDialog #adhaV151DirectorShareStatus[data-error="true"]{color:#9a2626!important}
/* Invitaciones de cuentas: real links are no longer visually lost among buttons. */
#adhaV151ShareOverlay #adhaV151WhatsApp{min-height:44px!important;box-sizing:border-box!important;white-space:normal!important}
@media(max-width:660px){
 #adhaV151DirectorShareDialog .adhaV151ShareCard>header{padding:13px 12px!important;gap:9px!important}
 #adhaV151DirectorShareDialog .adhaV151ShareCard>header h3{font-size:18px!important}
 #adhaV151DirectorShareDialog .adhaV151ShareActions{grid-template-columns:minmax(0,1fr)!important}
}
