/* ADHA Gestión V153 · Contraste accesible, PC + móvil, no altera el resto del negocio. */
#panelADHA{--ad-bg:#f5f7fa;--ad-surface:#ffffff;--ad-surface2:#f0f3f7;--ad-text:#14202b;--ad-muted:#475569;--ad-border:#c9d3dd;--ad-accent:#0f766e;--ad-accent-text:#fff;--ad-focus:#0f766e;color:var(--ad-text);}
#panelADHA .card,#adhaV151Commerce,#adhaV152Centro{color:var(--ad-text)!important;background:var(--ad-surface)!important;border-color:var(--ad-border)!important}
#panelADHA h2,#panelADHA h3,#panelADHA h4,#adhaV151Commerce h3,#adhaV152Centro .v152Panel h3,#adhaV152Centro .v152Plan h3{color:var(--ad-text)!important}
#panelADHA p,#panelADHA .muted,#panelADHA small,#adhaV151Commerce p,#adhaV151Commerce span,#adhaV152Centro .v152Panel p,#adhaV152Centro .v152Metrics small,#adhaV152Centro label,#adhaV152Centro .v152Note{color:var(--ad-muted)!important}
#panelADHA .actions button,#adhaV151Commerce button,#adhaV152Centro button{min-height:37px}
#panelADHA button.save,#adhaV152Centro button.save,#adhaV151Commerce button.save{background:var(--ad-accent)!important;color:var(--ad-accent-text)!important;border-color:var(--ad-accent)!important}
#panelADHA button:not(.save):not(.v152Danger),#adhaV152Centro .v152Secondary{background:var(--ad-surface)!important;color:var(--ad-text)!important;border:1px solid var(--ad-border)!important;border-radius:9px}
#panelADHA button:focus-visible,#panelADHA input:focus-visible,#panelADHA select:focus-visible,#panelADHA textarea:focus-visible{outline:3px solid var(--ad-focus);outline-offset:2px}
#panelADHA input,#panelADHA select,#panelADHA textarea,#adhaV152Centro input:not([type=checkbox]),#adhaV152Centro select,#adhaV152Centro textarea{background:var(--ad-surface)!important;color:var(--ad-text)!important;border:1px solid var(--ad-border)!important}
#adhaV152Centro{overflow:visible!important;box-shadow:0 6px 25px #10203010}
#adhaV152Centro .v152Hero{background:#1e293b!important;color:#fff!important}
#adhaV152Centro .v152Hero h2,#adhaV152Centro .v152Hero p,#adhaV152Centro .v152Hero .v152Eyebrow{color:#fff!important}
#adhaV152Centro .v152Tabs,#adhaV152Centro .v152Panel,#adhaV152Centro .v152Plan,#adhaV152Centro .v152Metrics>div,#adhaV152Centro .v152Partner{background:var(--ad-surface)!important;color:var(--ad-text)!important;border-color:var(--ad-border)!important}
#adhaV152Centro .v152Tabs button{color:var(--ad-text)!important;background:transparent!important;border:1px solid transparent!important}
#adhaV152Centro .v152Tabs button.active{color:#fff!important;background:var(--ad-accent)!important;border-color:var(--ad-accent)!important}
#adhaV152Centro .v152Metrics b,#adhaV152Centro .v152Amount,#adhaV151Commerce .adhaV151Plan strong{color:var(--ad-text)!important}
#adhaV152Centro .v152Pill{background:var(--ad-surface2)!important;color:var(--ad-text)!important;border:1px solid var(--ad-border)!important}
#adhaV152Centro table,#adhaV152Centro td,#adhaV152Centro th{background:var(--ad-surface)!important;color:var(--ad-text)!important;border-color:var(--ad-border)!important}
#adhaV152Centro th{background:var(--ad-surface2)!important}
#adhaV152Centro .v152Msg,#adhaV152Centro .v152Msg.bad{color:var(--ad-text)!important}
#adhaV152Centro .v152Danger{background:#fff2f2!important;color:#881c1c!important;border-color:#f3bcbc!important}
#adhaV151Commerce .adhaV151Plan,#adhaV151Commerce .adhaV151OperatorRow,#adhaV151Commerce #adhaV151OperatorForm{background:var(--ad-surface)!important;color:var(--ad-text)!important;border-color:var(--ad-border)!important}
#adhaV152Centro .v153TierBox{padding:14px 16px;border:1px solid var(--ad-border);border-radius:12px;background:var(--ad-surface2);margin:14px 0}
#adhaV152Centro .v153TierBox strong{color:var(--ad-text)}
#adhaV152Centro .v153TierBox>small{display:block;margin:6px 0 10px;color:var(--ad-muted)}
#adhaV152Centro .v153ModuleList{display:flex;flex-wrap:wrap;gap:6px}
#adhaV152Centro .v153ModuleList span{padding:5px 9px;border-radius:8px;font-size:12px;border:1px solid var(--ad-border);background:var(--ad-surface);color:var(--ad-text)}
#adhaV152Centro .v153Loading,#panelADHA .v153Loading{border:1px solid var(--ad-border);border-radius:9px;background:var(--ad-surface2);padding:10px 12px;color:var(--ad-text);font-size:13px;font-weight:600;animation:ad153pulse 1.3s ease-in-out infinite alternate}
@keyframes ad153pulse{from{opacity:.82}to{opacity:1}}
#panelADHA .statsGrid .stat{background:var(--ad-surface);color:var(--ad-text);border-color:var(--ad-border)}
#panelADHA .statsGrid .stat b,#panelADHA .statsGrid .stat span{color:var(--ad-text)!important}
html[data-theme="dark"] #panelADHA,body.dark #panelADHA,body[data-theme="dark"] #panelADHA{--ad-bg:#101720;--ad-surface:#1e2935;--ad-surface2:#2a3847;--ad-text:#f8fafc;--ad-muted:#d4dee9;--ad-border:#54677b;--ad-accent:#1d7774;--ad-accent-text:#ffffff;--ad-focus:#56c8bd}
html[data-theme="dark"] #adhaV152Centro .v152Hero,body.dark #adhaV152Centro .v152Hero,body[data-theme="dark"] #adhaV152Centro .v152Hero{background:#0c1420!important}
html[data-theme="dark"] #adhaV152Centro .v152Danger,body.dark #adhaV152Centro .v152Danger{background:#512727!important;color:#fff!important;border-color:#c27d7d!important}
#adhaV152Centro .v152Tabs{flex-wrap:wrap;white-space:normal;overflow:visible}
@media(max-width:700px){#adhaV152Centro .v152Hero{align-items:stretch!important}#adhaV152Centro .v152Tabs{gap:7px!important}#adhaV152Centro .v152Tabs button{flex:1 1 auto;font-size:12px;padding:9px 10px}#adhaV152Centro .v152Metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#adhaV152Centro .v152Grid2,#adhaV152Centro .v152Grid3{grid-template-columns:minmax(0,1fr)}#adhaV151Commerce .adhaV151OperatorRow{gap:10px;flex-direction:column;align-items:stretch}#panelADHA .actions{flex-wrap:wrap}}
@media(max-width:420px){#adhaV152Centro .v152Metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#adhaV152Centro .v152Metrics b{font-size:22px}#adhaV152Centro .v152Row>select{min-width:0}#adhaV152Centro .v152Panel{padding:12px}}
@media(prefers-reduced-motion:reduce){#adhaV152Centro .v153Loading,#panelADHA .v153Loading{animation:none}}

#panelADHA #adhaV152Centro .v152Tabs button.active{background:var(--ad-accent)!important;color:#fff!important;border-color:var(--ad-accent)!important}

/* Hotfix V158.0.1: evitar desbordamiento de tarjetas comerciales en móviles estrechos. */
@media(max-width:700px){
 #panelADHA,#panelADHA>*,#panelADHA .card,#panelADHA .statsGrid,#adhaV152Centro,#adhaV151Commerce{min-width:0;max-width:100%;box-sizing:border-box}
 #panelADHA .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #panelADHA .actions button{max-width:100%;width:100%;min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;padding:10px 6px}
 #panelADHA .statsGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #adhaV152Centro .v152Tabs{display:flex!important;flex-wrap:wrap!important;overflow:visible!important}
 #adhaV152Centro .v152Tabs button{flex:1 1 130px;min-width:0}
 #panelADHA input,#panelADHA textarea,#panelADHA select{max-width:100%;min-width:0}
}
@media(max-width:380px){#panelADHA .actions{grid-template-columns:1fr}}
