/* UNIFORMA V5.1 — Navegacao compacta */
@media (min-width:761px) {
  :root {
    --sidebar:78px;
    --sidebar-open:230px;
    --flyout-width:340px;
  }

  .sidebar {
    width:78px;
    padding:0 7px 12px;
    background:#081a36;
  }

  .sidebar:hover,
  .sidebar:focus-within {
    width:230px;
  }

  .sidebar .logo {
    height:90px;
    min-height:90px;
    margin:0 -7px 8px;
    padding:10px 8px;
    background:#081a36;
    border-bottom:1px solid #213b5c;
    justify-content:center;
  }

  .sidebar .logo-compact {
    width:49px;
    height:53px;
    object-fit:contain;
    object-position:center;
  }

  .sidebar .logo-full {
    left:10px;
    width:210px;
    height:70px;
    max-height:70px;
    object-fit:contain;
    object-position:center;
  }

  .sidebar .nav-caption {
    height:15px;
    padding:0 12px;
  }

  .sidebar .menu {
    gap:2px;
  }

  .sidebar .nav-row {
    width:100%;
    height:43px;
    min-height:43px;
  }

  .sidebar .nav-main {
    width:100%;
    min-width:0;
    height:41px;
    min-height:41px;
    gap:10px;
    padding:0 5px!important;
    border-radius:8px;
    flex:1;
  }

  .sidebar .nav-icon {
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    width:64px!important;
    min-width:64px!important;
    height:36px;
    margin:0;
    padding:0!important;
    flex-shrink:0;
  }

  .sidebar .icon-svg {
    width:18px!important;
    height:18px!important;
    display:block;
  }

  .sidebar:hover .nav-icon,
  .sidebar:focus-within .nav-icon {
    width:25px!important;
    min-width:25px!important;
  }

  .sidebar:hover .nav-main,
  .sidebar:focus-within .nav-main {
    gap:10px;
    padding-left:9px!important;
    padding-right:25px!important;
    font-size:11.5px!important;
  }

  .sidebar .nav-text {
    font-size:11.5px!important;
    font-weight:600;
    letter-spacing:-.2px;
  }

  .sidebar .nav-expand {
    right:5px;
    top:7px;
    width:22px;
    min-width:22px;
    height:28px;
  }

  .sidebar .sidebar-bottom {
    padding:10px 0 0;
    gap:3px;
  }

  .sidebar .utility-link {
    width:100%;
    min-height:42px;
    height:42px;
    padding:0 5px!important;
    gap:10px;
    border-radius:8px;
    justify-content:flex-start;
  }

  .sidebar .utility-link .nav-icon {
    width:64px!important;
    min-width:64px!important;
  }

  .sidebar:hover .utility-link,
  .sidebar:focus-within .utility-link {
    padding-left:9px!important;
    padding-right:7px!important;
  }

  .sidebar:hover .utility-link .nav-icon,
  .sidebar:focus-within .utility-link .nav-icon {
    width:25px!important;
    min-width:25px!important;
  }

  .sidebar .utility-cta {
    background:#0066ff;
    margin:0;
    width:100%;
  }

  .sidebar .nav-flyout {
    left:230px;
    top:0!important;
    bottom:0!important;
    height:100dvh;
    max-height:none;
    border-radius:0;
  }

  .page-shell {
    margin-left:78px;
  }
}

/* Mobile: logotipo completo e menu por toque */
@media (max-width:760px) {
  .sidebar .logo {
    background:#081a36;
    border-bottom:1px solid #213b5c;
  }

  .sidebar .logo-full {
    width:225px;
    max-height:78px;
    object-fit:contain;
  }

  .sidebar .nav-icon,
  .sidebar:hover .nav-icon,
  .sidebar:focus-within .nav-icon {
    width:28px!important;
    min-width:28px!important;
  }

  .sidebar .utility-link {
    padding:7px 10px;
  }

  .sidebar .utility-link .nav-icon {
    width:28px!important;
    min-width:28px!important;
  }

  .sidebar .nav-flyout {
    height:100dvh;
    max-height:100dvh;
  }
}

@media (prefers-reduced-motion:reduce) {
  .sidebar,
  .sidebar *,
  .nav-flyout {
    transition:none!important;
  }
}

/* =====================================================
   UNIFORMA V5.2 - CENTER ALIGNMENT
   Centralizacao geometrica dos icones
   ===================================================== */

@media (min-width:761px) {

  .sidebar:not(:hover):not(:focus-within) {
    width:78px;
    padding-left:7px;
    padding-right:7px;
  }

  .sidebar:not(:hover):not(:focus-within) .nav-row,
  .sidebar:not(:hover):not(:focus-within) .nav-main,
  .sidebar:not(:hover):not(:focus-within) .utility-link {
    width:100%;
    max-width:100%;
    min-width:0;
    margin-left:0;
    margin-right:0;
    padding-left:0!important;
    padding-right:0!important;
    box-sizing:border-box;
  }

  .sidebar:not(:hover):not(:focus-within) .nav-main,
  .sidebar:not(:hover):not(:focus-within) .utility-link {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0;
  }

  .sidebar:not(:hover):not(:focus-within) .nav-icon,
  .sidebar:not(:hover):not(:focus-within) .utility-link .nav-icon {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex:1 1 auto;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  .sidebar:not(:hover):not(:focus-within) .icon-svg {
    width:18px!important;
    height:18px!important;
    margin:0 auto!important;
    flex-shrink:0;
  }

  .sidebar:not(:hover):not(:focus-within) .sidebar-bottom {
    width:100%;
    padding-left:0;
    padding-right:0;
  }

  .sidebar:not(:hover):not(:focus-within) .utility-cta {
    display:flex;
    width:100%;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    justify-content:center;
    align-items:center;
    border-radius:9px;
  }

  .sidebar:not(:hover):not(:focus-within) .utility-cta .nav-icon {
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  .sidebar:not(:hover):not(:focus-within) .nav-text,
  .sidebar:not(:hover):not(:focus-within) .nav-expand {
    display:none!important;
  }
}

