The standards take into account the power lost due to cable resistance. A handy table
https://www.trend-networks.com/power-over-ethernet-c... - you can see the power source equipment (PSE, typically a switch or PoE injector) can supply more than the powered device (PD, typically an AP, camera or phone) may consume.
This does assume your cabling actually meet the standards - if it is some no-name brand CCA/CCS which purports to, but doesn't, then you could have issues on long runs where the PD is consuming the maximum permitted.