/* CSS das paginas e componentes de Features/<contexto> (antes em <style> inline nos .razor).
   Carregado depois de todos os outros CSS: a ordem e a precedencia que o <style> inline tinha. */

/* ===== Features/Dashboard/Components/BoasVindasModal.razor ===== */
.bv-modal {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    padding: 0.5rem 0.25rem 0;
}


.bv-logo {
    height: 36px;
    width: auto;
}


/* Imagem à esquerda, texto à direita; o @key do slide recria o bloco e repete a animação de entrada. */
.bv-corpo {
    align-items: center;
    animation: bv-entrada 0.35s ease both;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}


.bv-imagem {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
}


.bv-imagem img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}


.bv-conteudo {
    display: grid;
    gap: 0.5rem;
    text-align: left;
}


.bv-titulo {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0;
}


.bv-texto {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}


@keyframes bv-entrada {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}


@media (prefers-reduced-motion: reduce) {
    .bv-corpo { animation: none; }
}


@media (max-width: 600px) {
    .bv-corpo { grid-template-columns: 1fr; }
    .bv-conteudo { text-align: center; }
}


.bv-nao-mostrar {
    align-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    font-size: 0.85rem;
    gap: 0.5rem;
}


.bv-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}


.bv-dot {
    background: var(--border-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    height: 10px;
    padding: 0;
    width: 10px;
}


.bv-dot.ativo {
    background: var(--primary);
}


.bv-acoes {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    width: 100%;
}


/* ===== Features/Dashboard/Components/DashSaldoEmpresa.razor ===== */
.saldo-valor {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.25rem;
}


.saldo-legenda {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0.25rem 0 1rem;
}


.saldo-linhas {
    display: grid;
    gap: 0.5rem;
}


.saldo-linha {
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    display: flex;
    font-size: 0.88rem;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
}


.saldo-icone {
    color: var(--primary);
}


.saldo-rotulo {
    align-items: center;
    display: inline-flex;
    gap: 0.6rem;
}


.saldo-rotulo .dash-kpi-icon {
    border-radius: 9px;
    font-size: 0.9rem;
    height: 32px;
    margin-bottom: 0;
    width: 32px;
}


.saldo-linha strong {
    color: var(--text-primary);
}


/* ===== Features/Dashboard/Components/DashEncomendasHoje.razor + DashListasCompras.razor ===== */
.hoje-lista {
    display: grid;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}


.hoje-item {
    align-items: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: inherit;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    text-align: left;
    transition: border-color 0.15s, background-color 0.15s;
    width: 100%;
}


.hoje-item:hover {
    border-color: var(--primary);
}


.hoje-hora {
    color: var(--primary);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}


.hoje-info {
    display: grid;
    flex: 1;
    min-width: 0;
}


.hoje-info strong,
.hoje-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.hoje-info strong {
    color: var(--text-primary);
    font-size: 0.92rem;
}


.hoje-info small {
    color: var(--text-secondary);
    font-size: 0.78rem;
}


.hoje-estado {
    background: color-mix(in srgb, var(--text-secondary) 14%, transparent);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
}


.hoje-estado--pendente {
    background: color-mix(in srgb, #f59e0b 16%, transparent);
    color: #b45309;
}


.hoje-estado--concluido,
.hoje-estado--concluído {
    background: color-mix(in srgb, #16a34a 16%, transparent);
    color: #15803d;
}


[data-theme="dark"] .hoje-estado--pendente { color: #fbbf24; }
[data-theme="dark"] .hoje-estado--concluido,
[data-theme="dark"] .hoje-estado--concluído { color: #4ade80; }


.hoje-valor {
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}


/* ===== Features/Dashboard/Components/DashMelhoresMeses.razor ===== */
.mm-grafico {
    align-items: end;
    display: grid;
    gap: 0.5rem;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    height: 190px;
}


.mm-coluna {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 0.35rem;
    grid-template-rows: 1fr auto;
    height: 100%;
    padding: 0.35rem 0.25rem;
}


.mm-coluna:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); }


.mm-coluna.is-ativo {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border-color: var(--primary);
}


.mm-barras {
    align-items: end;
    display: flex;
    gap: 4px;
    height: 100%;
    justify-content: center;
}


.mm-barra {
    border-radius: 5px 5px 0 0;
    min-height: 3px;
    transition: height 0.4s ease;
    width: 40%;
}


.mm-barra--entrou { background: #16a34a; }
.mm-barra--saiu { background: #e11d48; }


.mm-mes {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}


.mm-detalhe {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    gap: 0.4rem 1rem;
    margin-top: 0.85rem;
}


.mm-detalhe strong { color: var(--text-primary); }
.mm-det { color: var(--text-secondary); }
.mm-det b { color: var(--text-primary); }
.mm-det--entrou i { color: #16a34a; }
.mm-det--saiu i { color: #e11d48; }


/* ===== Assistente de Stock: lista com altura máxima para não esticar a linha do gráfico ===== */
.assistant-list {
    max-height: 280px;
    overflow-y: auto;
}


/* ===== Features/Dashboard/Components/DashEncomendasHoje.razor ===== */
.hj-destaque {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
    border-radius: 14px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.9rem 1rem;
}


.hj-destaque-info {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}


.hj-etiqueta {
    align-items: center;
    color: var(--primary);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.hj-pill {
    background: color-mix(in srgb, #f59e0b 16%, transparent);
    border-radius: 999px;
    color: #b45309;
    font-size: 0.68rem;
    padding: 0.1rem 0.5rem;
    text-transform: none;
}


.hj-nome,
.hj-nome-linha {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
}


.hj-nome { font-size: 1.1rem; }
.hj-nome-linha { font-size: 0.92rem; }
.hj-nome:hover, .hj-nome-linha:hover { color: var(--primary); text-decoration: underline; }


.hj-cliente { color: var(--text-secondary); font-size: 0.82rem; }


.hj-resumo-itens {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}


.hj-destaque-acao {
    align-items: flex-end;
    display: grid;
    flex-shrink: 0;
    gap: 0.5rem;
    justify-items: end;
}


.hj-destaque-valor {
    color: var(--text-primary);
    font-size: 1.45rem;
    line-height: 1;
}


.hj-seccao {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 1rem 0 0.5rem;
    text-transform: uppercase;
}


.hj-linha {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.15s;
}


.hj-linha:hover,
.hj-linha.is-aberta { border-color: var(--primary); }


.hj-linha-cab {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
}


.hj-seta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform 0.2s;
}


.hj-linha.is-aberta .hj-seta { transform: rotate(180deg); }


.hj-detalhe {
    animation: hj-abrir 0.2s ease both;
    border-top: 1px dashed var(--border-color);
    display: grid;
    gap: 0.5rem;
    justify-items: start;
    margin: 0 0.75rem;
    padding: 0.65rem 0 0.75rem;
}


.hj-meta {
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    gap: 0.25rem 1rem;
}


@keyframes hj-abrir {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 600px) {
    .hj-destaque { align-items: stretch; flex-direction: column; }
    .hj-destaque-acao { align-items: center; display: flex; justify-content: space-between; }
}
