/* Ave Fénix V16 · unificación final sin alterar lógica de módulos. */
:root { --af-final-content-width: 1480px; }

body.admin-premium .admin-main > .af-page,
body.admin-premium .admin-main > .sa-page,
body.admin-premium .admin-main > .module-shell,
body.admin-premium .admin-main > .super-commercial-ui,
body.admin-premium .admin-main > .super-platform-ui,
body.admin-premium .admin-main > .super-subject-ui,
body.admin-premium .admin-main > .wallet-page-shell,
body.admin-premium .admin-main > .sm-manual,
body.admin-premium .admin-main > .container,
body.admin-premium .admin-main > .manual-gmail-wide {
    width: min(var(--af-final-content-width), 100%) !important;
    max-width: var(--af-final-content-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.admin-premium .super-commercial-ui .sc-shell { max-width: var(--af-final-content-width) !important; }

body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar {
    width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(310px,1.9fr) minmax(120px,.72fr) minmax(125px,.74fr) minmax(180px,1fr) minmax(110px,.62fr) auto !important;
    align-items:end !important;
    gap:9px !important;
    padding:12px 16px !important;
    margin:0 !important;
}
body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar > * { min-width:0 !important; width:auto !important; max-width:none !important; margin:0 !important; }
body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-v13-filter-search{grid-column:1}
body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-v13-filter-platform{grid-column:2}
body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-v13-filter-client{grid-column:3}
body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-v13-filter-renewal{grid-column:4}
body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-v13-filter-show{grid-column:5}
body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-v13-filter-clear{grid-column:6;justify-self:end!important;display:flex!important;align-items:flex-end!important}
body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-control{width:100%!important;min-height:40px!important;max-width:none!important}
body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar #clearAccountFilters{min-width:105px!important;min-height:40px!important;white-space:nowrap!important}
body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-label{white-space:nowrap!important}

body.admin-premium .premium-sidebar-nav{scrollbar-width:thin!important;scrollbar-color:var(--admin-sidebar) var(--admin-sidebar)!important}
body.admin-premium .premium-sidebar-nav::-webkit-scrollbar{width:7px!important}
body.admin-premium .premium-sidebar-nav::-webkit-scrollbar-track,
body.admin-premium .premium-sidebar-nav::-webkit-scrollbar-thumb,
body.admin-premium .premium-sidebar-nav:hover::-webkit-scrollbar-thumb{border:0!important;background:var(--admin-sidebar)!important;box-shadow:none!important}

@media(max-width:1240px){body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar{grid-template-columns:minmax(260px,1.7fr) minmax(115px,.7fr) minmax(120px,.72fr) minmax(170px,.95fr) minmax(105px,.58fr) auto!important;gap:7px!important}}
@media(max-width:1040px){body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar>*{grid-column:auto!important}body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-v13-filter-search{grid-column:1/-1!important}body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-v13-filter-clear{justify-self:stretch!important}body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar #clearAccountFilters{width:100%!important}}
@media(max-width:640px){body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar{grid-template-columns:1fr!important}body[data-page="gestionar_cuentas.php"] #afV13AccountToolbar .af-v13-filter-search{grid-column:auto!important}}
