/* Estilos Personalizados Vendas e Lucros */

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Botão Voltar ao Topo */
#scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #2563eb;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
    z-index: 50;
}

#scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* Line Clamp Utilitários */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tab de Plataforma Ativa (Menu Superior) */
.store-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.125rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 0.25rem 0.125rem;
}

.store-tab:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
    background-color: #eff6ff;
    transform: translateY(-1px);
}

.store-tab.active {
    color: #ffffff !important;
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 8px -1px rgba(37, 99, 235, 0.35) !important;
}

/* Filtro de Categoria na Sidebar */
.category-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
    border: 1px solid transparent;
    background-color: transparent;
    transition: all 0.15s ease;
    cursor: pointer;
}

.category-btn:hover {
    background-color: #f3f4f6;
    color: #1d4ed8;
}

.category-btn.active {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    font-weight: 700;
}
