/* Painel responsivo v2: navegação lateral no desktop e gaveta lateral no celular. */
.dashboard-mobile-bar,
.dashboard-sidebar-close,
.dashboard-menu-backdrop { display: none; }

.dashboard-sidebar-close {
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: max-content;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(111, 143, 166, .28);
  border-radius: 10px;
  color: #cbd8e0;
  background: rgba(255, 255, 255, .035);
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}

.dashboard-sidebar-close:hover,
.dashboard-sidebar-close:focus-visible {
  border-color: rgba(37, 214, 179, .5);
  color: white;
  background: rgba(37, 214, 179, .1);
}

@media (min-width: 901px) {
  .dashboard-shell { grid-template-columns: 276px minmax(0, 1fr); }
  .dashboard-main { padding-inline: clamp(26px, 4vw, 58px); }
  .dashboard-top, .dashboard-main > .tab-pane { width: min(100%, 1280px); margin-inline: auto; }
}

@media (max-width: 900px) {
  body.dashboard-menu-open { overflow: hidden; }
  .dashboard-page { min-height: 100dvh; padding-bottom: 0; }
  .dashboard-shell { position: relative; display: block; min-height: 100dvh; }
  .dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: min(88vw, 332px);
    height: 100dvh;
    min-height: 0;
    max-height: none;
    padding: 18px 15px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid rgba(37, 214, 179, .24);
    border-bottom: 0;
    box-shadow: 22px 0 55px rgba(0, 0, 0, .42);
    transform: translate3d(-104%, 0, 0);
    transition: transform .24s ease;
  }
  .dashboard-sidebar.is-mobile-open { transform: translate3d(0, 0, 0); }
  .dashboard-sidebar-brand { margin-right: 54px; margin-bottom: 18px; }
  .dashboard-sidebar-close { position: absolute; top: 18px; right: 15px; display: inline-flex; }
  .dashboard-sidebar-close > span:first-child { font-size: 1.35rem; font-weight: 400; line-height: .7; }
  .dashboard-menu-toggle { display: none; }
  .dashboard-nav { gap: 15px; padding-top: 10px; }
  .dashboard-nav-group { gap: 5px; }
  .dashboard-nav-group + .dashboard-nav-group { margin-top: 0; padding-top: 14px; }
  .dashboard-nav button { min-height: 46px; padding: 10px 11px; border-radius: 12px; }
  .dashboard-nav button:hover { transform: none; }
  .sidebar-bottom { margin-top: 22px; grid-template-columns: 1fr; }
  .dashboard-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 8, 14, .68);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
  }
  .dashboard-menu-backdrop.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .dashboard-main { min-width: 0; padding: 0 14px 32px; }
  .dashboard-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 68px;
    margin: 0 -14px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(111, 143, 166, .2);
    background: rgba(7, 17, 27, .94);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
    backdrop-filter: blur(16px);
  }
  .dashboard-mobile-menu {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    color: white;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }
  .dashboard-mobile-menu-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(37, 214, 179, .38);
    border-radius: 12px;
    color: var(--teal);
    background: rgba(37, 214, 179, .1);
    font-size: 1.05rem;
  }
  .dashboard-mobile-menu:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 10px; }
  .dashboard-mobile-copy { min-width: 0; display: grid; gap: 2px; }
  .dashboard-mobile-copy small { color: #8fa9b9; font-size: .58rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
  .dashboard-mobile-copy strong { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-mobile-chevron { color: var(--teal); font-size: 1.5rem; line-height: 1; }
  .dashboard-mobile-current { max-width: 42%; overflow: hidden; color: #a8bbc6; font-size: .72rem; font-weight: 800; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-top { padding-top: 27px; }
}

