/* Estructura de dashboard: barra lateral + contenido. Pocos componentes y densos; color solo del tema.
   En pantallas angostas, la barra lateral pasa arriba como navegación horizontal. Necesita tokens.css. */
.c-dash { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100%; width: 100%; background: var(--background); color: var(--foreground); }
.c-dash__side { display: flex; flex-direction: column; gap: 1.25rem; padding: 1rem .75rem; border-right: 1px solid var(--border); background: var(--muted); }
.c-dash__brand { display: flex; align-items: center; gap: .5rem; padding: .25rem .5rem; color: var(--foreground); text-decoration: none; font-weight: 600; }
.c-dash__brand svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.c-dash__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .125rem; }
.c-dash__link { display: flex; align-items: center; gap: .625rem; padding: .5rem; border-radius: var(--radius); color: var(--muted-foreground); text-decoration: none; font-size: .875rem; transition: background-color .15s, color .15s; }
.c-dash__link svg { width: 1rem; height: 1rem; flex: none; }
.c-dash__link:hover { background: var(--accent); color: var(--accent-foreground); }
.c-dash__link:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.c-dash__link[aria-current=page] { background: var(--background); color: var(--foreground); font-weight: 500; box-shadow: 0 1px 2px 0 #0000000d, 0 0 0 1px var(--border); }
.c-dash__user { margin: auto 0 0; display: flex; align-items: center; gap: .625rem; padding: .5rem; font-size: .875rem; font-weight: 500; }
.c-dash__user small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted-foreground); }
.c-dash__avatar { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-size: .6875rem; font-weight: 600; }
.c-dash__main { display: grid; align-content: start; gap: 1.25rem; padding: 1.5rem; min-width: 0; }
.c-dash__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.c-dash__title { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }
.c-dash__sub { margin: .125rem 0 0; font-size: .8125rem; color: var(--muted-foreground); }
.c-dash__stats { max-width: none; }
.c-dash__panel { padding: 1.125rem 1.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); background: var(--card); color: var(--card-foreground); box-shadow: 0 1px 2px 0 #0000000d; min-width: 0; }
.c-dash__panel .c-chart { max-width: none; }
@media (width < 48rem) {
  .c-dash { grid-template-columns: 1fr; }
  .c-dash__side { flex-direction: row; align-items: center; gap: .5rem; padding: .5rem .75rem; border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .c-dash__nav ul { display: flex; }
  .c-dash__link span { white-space: nowrap; }
  .c-dash__brand span, .c-dash__user { display: none; }
  .c-dash__main { padding: 1rem; }
}
