/* v0.2.30 — Logo containment in EVERY Hub/Supply/Vision context.
   Do not derive layout dimensions from the uploaded file's native dimensions. */
body[data-erictel-module] :is(.hub-logo,.brand-icon,.mg-logo) {
  box-sizing:border-box; display:grid; place-items:center;
  flex:0 0 auto; min-width:0; min-height:0; overflow:hidden;
  padding:3px; line-height:1;
}
/* Legacy Hub admin pages do not use ui-hub-v025, so their logo needs
   an explicit size independently from the Hub landing page. */
body[data-erictel-module] .hub-logo {width:48px;height:48px;flex-basis:48px;}
body[data-erictel-module] .hub-bar .hub-logo {width:48px;height:48px;flex-basis:48px;}
body[data-erictel-module] .brand-icon {width:40px;height:40px;flex-basis:40px;}
body[data-erictel-module] .sidebar .brand-icon {width:36px;height:36px;flex-basis:36px;}
body[data-erictel-module] .mg-logo {width:40px;height:40px;flex-basis:40px;}
/* Preserve the v0.2.25 landing-page 49px logo. */
body[data-erictel-module="hub"].ui-hub-v025 .hub-logo {width:49px;height:49px;flex-basis:49px;}
/* Constrain the actual <img> even if its intrinsic dimensions are huge. */
body[data-erictel-module] :is(.hub-logo,.brand-icon,.mg-logo) > img.theme-logo-img {
  display:block;box-sizing:border-box;width:100%;height:100%;
  max-width:100%;max-height:100%;min-width:0;min-height:0;
  object-fit:contain;object-position:center;flex:none;
}
body[data-erictel-module] :is(.tile-glyph,.brand-card-mark) {overflow:hidden;min-width:0;min-height:0;}
body[data-erictel-module] .tile-glyph > img.theme-tile-img {
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;
  min-width:0;min-height:0;object-fit:contain;object-position:center;
}
body[data-erictel-module] .brand-card-mark > img {
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;
  min-width:0;min-height:0;object-fit:contain;object-position:center;
}
/* Keep brand texts/navigational actions from stretching the header. */
body[data-erictel-module] :is(.hub-admin-brand,.hub-brand-link,.brand-link,.mg-brand) {min-width:0;}
body[data-erictel-module] :is(.hub-admin-brand,.hub-brand-link,.brand-link,.mg-brand) :is(strong,small,.hub-admin-sub) {overflow-wrap:anywhere;}
