/**
 * ZERTI — WordPress admin left menu logo (all admin screens).
 * Core applies padding/opacity to .wp-menu-image img; normalize so zerti-admin-menu-icon.png fits the row.
 */

#adminmenu a.menu-top[href*="page=zerti-admin"] .wp-menu-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    float: left;
    box-sizing: border-box;
}

/* Core menu icons sit on the inline-start side; LTR = left, RTL admin (body.rtl) = right. */
body.rtl #adminmenu a.menu-top[href*="page=zerti-admin"] .wp-menu-image {
    float: right;
}

#adminmenu a.menu-top[href*="page=zerti-admin"] .wp-menu-image img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    display: block;
}

#adminmenu a.menu-top[href*="page=zerti-admin"]:hover .wp-menu-image img,
#adminmenu a.menu-top[href*="page=zerti-admin"].current .wp-menu-image img,
#adminmenu a.menu-top[href*="page=zerti-admin"].wp-has-current-submenu .wp-menu-image img {
    opacity: 1 !important;
}

.folded #adminmenu a.menu-top[href*="page=zerti-admin"] .wp-menu-image img {
    margin: 0 auto !important;
}
