/*
 * DEC-007 / v0.12.16 — exact official Il Gelato Italiano wordmark.
 * Source: the PNG supplied by Simone on 21/10/2026.
 * On light surfaces the original burgundy artwork is used. On burgundy role
 * shells the server outputs the approved white, transparent derivative made
 * from the same alpha mask: never a white card over the red sidebar.
 */
.igc-brand-logo{
  display:block!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:center!important;
  filter:none!important;
  background:#fff!important;
  border:1px solid rgba(103,19,36,.10)!important;
  border-radius:14px!important;
  padding:7px 11px!important;
  box-shadow:0 10px 24px rgba(41,3,13,.12)!important;
}

/* Main role sidebars: one horizontal wordmark, never a square badge. */
.igc-president-brand-logo,
.igc-manager-brand-logo,
.igc-admin-brand-logo,
.igc-area-brand-logo,
.igc-logistics-brand-logo,
.igc-driver-brand-logo,
.igc-operator-brand-logo,
.igc-treasury-brand-logo,
.igc-manager-logo .igc-brand-logo,
.igc-admin-logo .igc-brand-logo,
.igc-area-logo .igc-brand-logo,
.igc-log-brand .igc-brand-logo,
.igc-driver-brand .igc-brand-logo,
.igc-op-logo .igc-brand-logo,
.igc-open-brand .igc-brand-logo{
  width:184px!important;
  height:84px!important;
  max-width:184px!important;
  max-height:84px!important;
  min-width:0!important;
  flex:0 0 auto!important;
  padding:8px 12px!important;
  border-radius:15px!important;
}

/* Compact header marks remain readable and horizontal. */
.igc-president-top-logo{
  width:78px!important;
  height:42px!important;
  max-width:78px!important;
  max-height:42px!important;
  padding:5px 7px!important;
  border-radius:10px!important;
}
.igc-treasury-hero-logo,
.igc-welcome-brand-logo{
  width:150px!important;
  height:68px!important;
  max-width:150px!important;
  max-height:68px!important;
  flex:0 0 150px!important;
  padding:7px 10px!important;
}
.igc-login-brand-logo{
  width:220px!important;
  height:96px!important;
  max-width:220px!important;
  max-height:96px!important;
  padding:9px 14px!important;
  border-radius:16px!important;
}
.igc-inline-brand-logo{
  width:126px!important;
  height:56px!important;
  max-width:126px!important;
  max-height:56px!important;
  flex:0 0 126px!important;
  padding:6px 9px!important;
  border-radius:12px!important;
}

/* Cancel legacy pink/square treatments. */
.igc-brand-logo,
.igc-president-brand-logo,
.igc-president-top-logo,
.igc-treasury-hero-logo,
.igc-welcome-brand-logo,
.igc-login-brand-logo,
.igc-inline-brand-logo{
  background-color:#fff!important;
}

/*
 * Logo on burgundy/dark surfaces.
 * The image source is assets/igc-official-logo-white.png; this rule removes
 * every card treatment so the sidebar itself remains the visible background.
 */
.igc-brand-logo-on-dark{
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  box-shadow:none!important;
  filter:none!important;
}

/* Narrow desktop / tablet sidebars. */
@media (min-width:761px) and (max-width:1100px){
  .igc-president-brand-logo,
  .igc-manager-brand-logo,
  .igc-admin-brand-logo,
  .igc-area-brand-logo,
  .igc-logistics-brand-logo,
  .igc-driver-brand-logo,
  .igc-operator-brand-logo,
  .igc-treasury-brand-logo,
  .igc-manager-logo .igc-brand-logo,
  .igc-admin-logo .igc-brand-logo,
  .igc-area-logo .igc-brand-logo,
  .igc-log-brand .igc-brand-logo,
  .igc-driver-brand .igc-brand-logo,
  .igc-op-logo .igc-brand-logo,
  .igc-open-brand .igc-brand-logo{
    width:72px!important;
    height:40px!important;
    max-width:72px!important;
    max-height:40px!important;
    padding:4px 6px!important;
    border-radius:9px!important;
  }
}

/* President shell has its own responsive layout attributes. */
.igc-president-app[data-igc-admin-layout="desktop-compact"] .igc-president-brand-logo,
.igc-president-app[data-igc-admin-layout="tablet"] .igc-president-brand-logo{
  width:72px!important;
  height:40px!important;
  max-width:72px!important;
  max-height:40px!important;
  padding:4px 6px!important;
  border-radius:9px!important;
}

@media (max-width:760px){
  .igc-president-brand-logo,
  .igc-manager-brand-logo,
  .igc-admin-brand-logo,
  .igc-area-brand-logo,
  .igc-logistics-brand-logo,
  .igc-driver-brand-logo,
  .igc-operator-brand-logo,
  .igc-treasury-brand-logo,
  .igc-manager-logo .igc-brand-logo,
  .igc-admin-logo .igc-brand-logo,
  .igc-area-logo .igc-brand-logo,
  .igc-log-brand .igc-brand-logo,
  .igc-driver-brand .igc-brand-logo,
  .igc-op-logo .igc-brand-logo,
  .igc-open-brand .igc-brand-logo{
    width:150px!important;
    height:68px!important;
    max-width:150px!important;
    max-height:68px!important;
    padding:6px 9px!important;
    border-radius:12px!important;
  }
  .igc-login-brand-logo{
    width:180px!important;
    height:80px!important;
    max-width:180px!important;
    max-height:80px!important;
  }
  .igc-inline-brand-logo{
    width:104px!important;
    height:48px!important;
    max-width:104px!important;
    max-height:48px!important;
    flex-basis:104px!important;
  }
  .igc-welcome-brand-logo,
  .igc-treasury-hero-logo{
    width:122px!important;
    height:58px!important;
    max-width:122px!important;
    max-height:58px!important;
    flex-basis:122px!important;
  }
}

/* Keep the inverse wordmark truly transparent after responsive size rules. */
.igc-brand-logo.igc-brand-logo-on-dark{
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  box-shadow:none!important;
}

/* First access: the approved white wordmark sits directly on the hero. */
.igc-welcome-brand-logo.igc-brand-logo-on-dark{
  width:168px!important;
  height:72px!important;
  max-width:168px!important;
  max-height:72px!important;
  flex:0 0 168px!important;
  object-position:left center!important;
}
@media(max-width:900px){
  .igc-welcome-brand-logo.igc-brand-logo-on-dark{
    width:144px!important;
    height:62px!important;
    max-width:144px!important;
    max-height:62px!important;
    flex-basis:144px!important;
  }
}
@media(max-width:680px){
  .igc-welcome-brand-logo.igc-brand-logo-on-dark{
    width:132px!important;
    height:56px!important;
    max-width:132px!important;
    max-height:56px!important;
    flex-basis:auto!important;
  }
}
