/* layout.css -- shell da aplicacao (sidebar + topbar + main).
   Fase 2 preenche o conteudo real; aqui so as caixas. */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--topbar-height) 1fr;
  min-height: 100vh;
}

.sidebar {
  grid-row: 1 / span 2;
  background: var(--branco);
  border-right: 1px solid var(--borda);
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--branco);
  border-bottom: 1px solid var(--borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.main {
  padding: 20px;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -100%; top: 0; bottom: 0; width: 82%; transition: left var(--tr); z-index: 20; }
  .sidebar.aberta { left: 0; }
}
