/* Même image + texte + fond + bordure sur feuille, édition et impression. */
.ef-caa-layers{display:flex;flex-direction:column;align-items:stretch;justify-content:center;box-sizing:border-box;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;position:relative;border:0 solid transparent;border-radius:3px;color:#152d46}
.ef-caa-layer-image{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:0;min-width:0;overflow:hidden;position:relative;width:100%}
.ef-caa-layer-image>.ef-caa-layer-img{position:static!important;inset:auto!important;display:block;flex:0 1 auto;object-fit:contain;width:100%;height:100%;min-width:0;min-height:0;max-height:100%;max-width:100%}
.ef-caa-layer-image>.ef-caa-layer-svg{display:block;flex:0 1 auto;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%}
.ef-caa-layer-text{display:block;flex:0 0 auto;box-sizing:border-box;max-width:100%;min-width:0;line-height:1.2;text-align:center;overflow-wrap:anywhere;padding:1px 2px;color:#111}
.ef-canonical-holder .ef-caa-layers{width:90%;height:90%;max-width:100%;max-height:100%}
.ef-canonical-holder .ef-caa-layers>.ef-caa-layer-text{font-size:12pt}
@media print{.ef-caa-layers{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Annotations anciennes rendues sans PNG calculé ; même surface de référence. */
.ef-caa-annotation{position:absolute;display:grid;place-items:center;transform-origin:center;pointer-events:none;min-width:0;min-height:0}
.ef-caa-annotation>svg,.ef-caa-annotation>img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.ef-caa-text-only{justify-content:center}
