/* .grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 64rem) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
} */

/* ---------- Layout principal (MainLayout) ----------
 * Faixa superior com o mesmo fundo da tela de login (sem animação), para o
 * sistema e o login parecerem o mesmo produto. As variáveis do tema são
 * redefinidas dentro da faixa para os botões do BlazorBlueprint ficarem claros. */

.app-topo {
    --foreground: oklch(0.97 0.01 290);
    --accent: rgb(255 255 255 / 0.1);
    --accent-foreground: #fff;
    --muted-foreground: oklch(0.8 0.05 292);
    --ring: #a78bfa;

    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--foreground);
    background:
        radial-gradient(60% 180% at 18% 0%, #2a1466 0%, transparent 70%),
        linear-gradient(160deg, #1b1040 0%, #0d0a26 100%);
    box-shadow: 0 1px 0 rgb(167 139 250 / 0.18), 0 8px 24px -16px rgb(13 10 38 / 0.8);
}

.app-topo-conteudo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 2rem;
    min-height: 4rem;
}

.app-marca {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-block: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.app-marca img {
    width: 2.25rem;
    height: 2.25rem;
    filter: drop-shadow(0 0 10px rgb(139 92 246 / 0.55));
}

.app-marca strong,
.app-marca small {
    display: block;
    line-height: 1.1;
}

.app-marca strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.app-marca small {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

/* Navegação: no celular desce para uma segunda linha com rolagem horizontal */
.app-nav {
    order: 3;
    display: flex;
    gap: 0.25rem;
    width: calc(100% + 1.5rem);
    margin-inline: -0.75rem;
    overflow-x: auto;
    font-size: 0.875rem;
    font-weight: 500;
}

.app-nav a {
    position: relative;
    padding: 0.875rem 0.75rem;
    white-space: nowrap;
    color: rgb(237 233 254 / 0.7);
    text-decoration: none;
    transition: color 0.15s;
}

.app-nav a:hover {
    color: #fff;
}

.app-nav a.ativo {
    color: #fff;
}

.app-nav a.ativo::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: #a78bfa;
    box-shadow: 0 0 10px rgb(167 139 250 / 0.8);
}

.app-acoes {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.app-usuario {
    display: none;
    margin-right: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.app-icone {
    display: inline-flex;
    padding: 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    color: rgb(237 233 254 / 0.75);
    transition: color 0.15s, background-color 0.15s;
}

.app-icone:hover {
    color: #fff;
    background: var(--accent);
}

.app-topo a:focus-visible,
.app-topo button:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

@media (min-width: 48rem) {
    .app-nav {
        order: 0;
        width: auto;
        margin-inline: 0;
        overflow: visible;
    }

    .app-nav a {
        padding-block: 1.375rem;
    }

    .app-usuario {
        display: inline;
    }
}

.app-rodape {
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.app-rodape-conteudo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.5rem;
}

.app-rodape-conteudo img {
    width: 1.25rem;
    height: 1.25rem;
}

.app-rodape-conteudo strong {
    font-weight: 600;
    color: var(--foreground);
}
