/* JOGO × TSC V12: screen-adaptive density, refined refresh experience, and mobile shield.
 * Display-only, across admin/manager/blogger/specialist. Retain V10/V11 menu
 * stability, original logo, gold frames and fixed mobile navigation. */
:root{
  --tsc-layout-max:2200px;
  --tsc-main-max:1860px;
}
@media(min-width:1101px){
  /* Slightly wider but bounded navigation; the adjacent content always receives
   * the remaining width. Previous styles hard-coded 276px on every screen. */
  #root .shell{
    grid-template-columns:clamp(284px,18.2vw,308px) minmax(0,1fr)!important;
  }
  #root .shell>.sidebar{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  #root .shell>.main{
    width:100%!important;
    max-width:min(100%,var(--tsc-main-max))!important;
    min-width:0!important;
    margin:0 auto!important;
    padding-left:clamp(20px,2.1vw,42px)!important;
    padding-right:clamp(20px,2.1vw,42px)!important;
  }
}
@media(min-width:1900px){
  /* Very wide desktops have a readable centered canvas instead of one narrow
   * block floating at the left or overextended full-width cards. */
  #root .shell{
    width:min(100%,var(--tsc-layout-max))!important;
    max-width:var(--tsc-layout-max)!important;
    margin-inline:auto!important;
  }
  #root .shell>.main{
    max-width:min(100%,var(--tsc-main-max))!important;
  }
}
@media(min-width:731px) and (max-width:1100px){
  #root .shell{
    grid-template-columns:88px minmax(0,1fr)!important;
  }
  #root .shell>.sidebar{
    width:88px!important;
    max-width:88px!important;
    min-width:0!important;
  }
  #root .shell>.main{
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding-left:clamp(15px,2vw,24px)!important;
    padding-right:clamp(15px,2vw,24px)!important;
  }
}
@media(min-width:731px) and (max-width:1450px){
  /* Four dashboard KPIs in one row become cramped on smaller laptops. */
  #root .shell>.main .g4{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #root .shell>.main :is(.grid,.g2,.g3,.g4,.gmain){
    min-width:0;
    max-width:100%;
  }
}
@media(min-width:731px) and (max-width:950px){
  #root .shell>.main .gmain{grid-template-columns:minmax(0,1fr)!important;}
  #root .shell>.main .g3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:730px){
  /* Honor the original per-role bottom tab bar; keep viewport-bound content. */
  #root .shell{width:100%!important;max-width:100%!important;min-width:0!important;}
  #root .shell>.main{min-width:0!important;max-width:100%!important;}
  #root .shell>.main #content{min-width:0!important;max-width:100%!important;}
  #root .shell>.main :is(.g2,.g3,.g4,.gmain){
    grid-template-columns:minmax(0,1fr)!important;
    max-width:100%;
    min-width:0;
  }
  #root .shell>.main :is(.card,.panel,.grid,.tablebox){
    min-width:0;
    max-width:100%;
  }
  #root .shell>.main .tablebox{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  #root .shell>.main>.tsc-logo-v2-mobile .tsc-brand-mobile-copy em{
    display:flex!important;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
    line-height:1.35;
  }
  #root .shell>.main>.tsc-logo-v2-mobile .tsc-brand-mobile-copy em::before{
    content:"";
    display:block;
    width:15px;
    height:15px;
    flex:0 0 15px;
    background-position:center;
    background-repeat:no-repeat;
    background-size:contain;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1cd79' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 20 6v6c0 5-3 8-8 10-5-2-8-5-8-10V6z'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
  }
}
@media(min-width:731px){
  #root .shell>.sidebar .v46-nav-block,
  #root .shell>.sidebar>.nav{
    flex:0 0 auto!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #tsc-early-splash,#tsc-early-splash *{transition:none!important;}
}

